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

Navigation information. More...

Inheritance diagram for Dragengine.Scenery.NavigationInfo:

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.

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.

References setPathFactor().

Referenced by hashCode().

◆ getCostType()

int Dragengine.Scenery.NavigationInfo.getCostType ( )

Cost type at position if position is not null.

References setPosition().

Referenced by setCostType().

◆ getPathFactor()

float Dragengine.Scenery.NavigationInfo.getPathFactor ( )

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

Referenced by setPathFactor().

◆ getPathIndex()

int Dragengine.Scenery.NavigationInfo.getPathIndex ( )

Index along navigation path.

-1 indicates navigation start position towards first path point.

Referenced by setPathIndex().

◆ getPosition()

DVector Dragengine.Scenery.NavigationInfo.getPosition ( )

Position.

References getPosition().

Referenced by getPosition().

◆ hashCode()

int Dragengine.Scenery.NavigationInfo.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

References equals(), and hashCode().

Referenced by hashCode().

◆ new() [1/2]

NavigationInfo Dragengine.Scenery.NavigationInfo.new ( )

Create navigation information.

References new().

Referenced by new(), and new().

◆ new() [2/2]

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

Create copy of navigation information.

References new().

◆ setCostType()

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

Set cost type at position.

References getCostType(), and setCostType().

Referenced by setCostType().

◆ setPathFactor()

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

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

References getPathFactor(), and setPathIndex().

Referenced by equals().

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

References getPathIndex().

Referenced by setPathFactor().

◆ setPosition()

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

Set position.

Referenced by getCostType().


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