Drag[en]gine Script Module DragonScript
1.23
|
Navigation information. More...
Public Member Functions | |
Constructors | |
NavigationInfo | new () |
Create navigation information. More... | |
NavigationInfo | new (NavigationInfo copy) |
Create copy of navigation information. More... | |
Management | |
DVector | getPosition () |
Position. More... | |
void | setPosition (DVector position) |
Set position. More... | |
int | getCostType () |
Cost type at position if position is not null. More... | |
void | setCostType (int costType) |
Set cost type at position. More... | |
int | getPathIndex () |
Index along navigation path. More... | |
void | setPathIndex (int index) |
Set index along navigation path. More... | |
float | getPathFactor () |
Factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1. More... | |
void | setPathFactor (float factor) |
Set factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1. More... | |
bool | equals (Object other) |
Navigation information is equal to another object. More... | |
int | hashCode () |
Hash code for use as dictionary keys. More... | |
Navigation information.
This is a native class.
bool Dragengine.Scenery.NavigationInfo.equals | ( | Object | other | ) |
Navigation information is equal to another object.
Implements Object.equals(Object).
int Dragengine.Scenery.NavigationInfo.getCostType | ( | ) |
Cost type at position if position is not null.
float Dragengine.Scenery.NavigationInfo.getPathFactor | ( | ) |
Factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1.
int Dragengine.Scenery.NavigationInfo.getPathIndex | ( | ) |
Index along navigation path.
-1 indicates navigation start position towards first path point.
DVector Dragengine.Scenery.NavigationInfo.getPosition | ( | ) |
Position.
int Dragengine.Scenery.NavigationInfo.hashCode | ( | ) |
Hash code for use as dictionary keys.
Implements Object.hashCode().
NavigationInfo Dragengine.Scenery.NavigationInfo.new | ( | ) |
Create navigation information.
NavigationInfo Dragengine.Scenery.NavigationInfo.new | ( | NavigationInfo | copy | ) |
Create copy of navigation information.
void Dragengine.Scenery.NavigationInfo.setCostType | ( | int | costType | ) |
Set cost type at position.
void Dragengine.Scenery.NavigationInfo.setPathFactor | ( | float | factor | ) |
Set factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1.
void Dragengine.Scenery.NavigationInfo.setPathIndex | ( | int | index | ) |
Set index along navigation path.
-1 indicates navigation start position towards first path point.
EInvalidParam | index is less than -1. |
void Dragengine.Scenery.NavigationInfo.setPosition | ( | DVector | position | ) |
Set position.