MovementVector Constructor |
Used to define a vector along which creatures can move. The vector
encompasses both destination and speed.
Namespace: Terrarium.Sdk.Classes.CreatureAssembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic MovementVector(
Point destination,
int speed
)
Public Sub New (
destination As Point,
speed As Integer
)
public:
MovementVector(
Point^ destination,
int speed
)
new :
destination : Point *
speed : int -> MovementVector
Parameters
- destination
- Type: Terrarium.Sdk.Classes.HelpersPoint
System.Point representing the location in the world to move to.
- speed
- Type: SystemInt32
The speed at which to move.
ExceptionsException | Condition |
---|
ApplicationException |
Thrown if speed is less than 2. Also thrown if destination is empty and speed is not 0.
|
See Also