Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.SpawnPoint Class Reference

Spawn point for actors and props. More...

Inheritance diagram for Dragengine.Scenery.SpawnPoint:

Public Member Functions

DMatrix getMatrix ()
 Spawn matrix.
String getName ()
 Unique name of spawn point.
Quaternion getOrientation ()
 Spawn orientation.
DVector getPosition ()
 Spawn position.
SpawnPoint new (String name)
 Create spawn point.
void setOrientation (Quaternion orientation)
 Set spawn orientation.
void setPosition (DVector position)
 Set spawn position.
void spawn (GameWorld gameWorld, Element element)
 Spawn element in game world at position and orientation defined in the spawn point.
void spawn (GameWorld gameWorld, Element element, Vector position, Vector rotation)
 Spawn element in game world at position and orientation defined in the spawn point.

Public Attributes

String pName
Quaternion pOrientation
DVector pPosition

Detailed Description

Spawn point for actors and props.

Spawn points have a unique name and are added to the SpawnPointList of a GameWorld.

Member Function Documentation

◆ getMatrix()

DMatrix Dragengine.Scenery.SpawnPoint.getMatrix ( )

Spawn matrix.

References pPosition, and setPosition().

Referenced by spawn().

◆ getName()

String Dragengine.Scenery.SpawnPoint.getName ( )

Unique name of spawn point.

References pName.

Referenced by getPosition().

◆ getOrientation()

Quaternion Dragengine.Scenery.SpawnPoint.getOrientation ( )

Spawn orientation.

References getPosition(), and pPosition.

Referenced by spawn().

◆ getPosition()

DVector Dragengine.Scenery.SpawnPoint.getPosition ( )

Spawn position.

References getName().

Referenced by getOrientation().

◆ new()

SpawnPoint Dragengine.Scenery.SpawnPoint.new ( String name)

Create spawn point.

References new().

Referenced by new().

◆ setOrientation()

void Dragengine.Scenery.SpawnPoint.setOrientation ( Quaternion orientation)

Set spawn orientation.

Referenced by spawn().

◆ setPosition()

void Dragengine.Scenery.SpawnPoint.setPosition ( DVector position)

Set spawn position.

References pName.

Referenced by getMatrix().

◆ spawn() [1/2]

void Dragengine.Scenery.SpawnPoint.spawn ( GameWorld gameWorld,
Element element )

Spawn element in game world at position and orientation defined in the spawn point.

If the element is spawned already in another world it teleport instead.

References getOrientation(), pOrientation, and setOrientation().

Referenced by spawn().

◆ spawn() [2/2]

void Dragengine.Scenery.SpawnPoint.spawn ( GameWorld gameWorld,
Element element,
Vector position,
Vector rotation )

Spawn element in game world at position and orientation defined in the spawn point.

The position and rotation are relative to the spawn point. If the element is already in the game world teleports the element instead.

References getMatrix(), pOrientation, pPosition, and spawn().

Member Data Documentation

◆ pName

String Dragengine.Scenery.SpawnPoint.pName

Referenced by getName(), and setPosition().

◆ pOrientation

Quaternion Dragengine.Scenery.SpawnPoint.pOrientation

Referenced by spawn(), and spawn().

◆ pPosition

DVector Dragengine.Scenery.SpawnPoint.pPosition

Referenced by getMatrix(), getOrientation(), and spawn().


The documentation for this class was generated from the following file: