|
Drag[en]gine Script Module DragonScript 1.32.1
|
Navigation information. More...
Public Member Functions | |
Constructors | |
| NavigationInfo | new () |
| Create navigation information. | |
| NavigationInfo | new (NavigationInfo copy) |
| Create copy of navigation information. | |
Management | |
| DVector | getPosition () |
| Position. | |
| void | setPosition (DVector position) |
| Set position. | |
| int | getCostType () |
| Cost type at position if position is not null. | |
| void | setCostType (int costType) |
| Set cost type at position. | |
| int | getPathIndex () |
| Index along navigation path. | |
| void | setPathIndex (int index) |
| Set index along navigation path. | |
| float | getPathFactor () |
| Factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1. | |
| void | setPathFactor (float factor) |
| Set factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1. | |
| bool | equals (Object other) |
| Navigation information is equal to another object. | |
| int | hashCode () |
| Hash code for use as dictionary keys. | |
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.