Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.NavigationInfo Class Reference

Navigation information. More...

Inheritance diagram for Dragengine.Scenery.NavigationInfo:

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...
 

Detailed Description

Navigation information.

This is a native class.

Member Function Documentation

◆ equals()

bool Dragengine.Scenery.NavigationInfo.equals ( Object  other)

Navigation information is equal to another object.

Implements Object.equals(Object).

Returns
true if other is of type NavigationInfo and both point to the same navigation info object.

◆ getCostType()

int Dragengine.Scenery.NavigationInfo.getCostType ( )

Cost type at position if position is not null.

◆ getPathFactor()

float Dragengine.Scenery.NavigationInfo.getPathFactor ( )

Factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1.

◆ getPathIndex()

int Dragengine.Scenery.NavigationInfo.getPathIndex ( )

Index along navigation path.

-1 indicates navigation start position towards first path point.

◆ getPosition()

DVector Dragengine.Scenery.NavigationInfo.getPosition ( )

Position.

◆ hashCode()

int Dragengine.Scenery.NavigationInfo.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

◆ new() [1/2]

NavigationInfo Dragengine.Scenery.NavigationInfo.new ( )

Create navigation information.

◆ new() [2/2]

NavigationInfo Dragengine.Scenery.NavigationInfo.new ( NavigationInfo  copy)

Create copy of navigation information.

◆ setCostType()

void Dragengine.Scenery.NavigationInfo.setCostType ( int  costType)

Set cost type at position.

◆ setPathFactor()

void Dragengine.Scenery.NavigationInfo.setPathFactor ( float  factor)

Set factor along path between getPathIndex() and getPathIndex()+1 from 0 to 1.

◆ setPathIndex()

void Dragengine.Scenery.NavigationInfo.setPathIndex ( int  index)

Set index along navigation path.

-1 indicates navigation start position towards first path point.

Exceptions
EInvalidParamindex is less than -1.

◆ setPosition()

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

Set position.


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