Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
ai::waypoint Struct Reference

#include <ai.hpp>

Public Member Functions

 waypoint ()
 
 waypoint (const vec &o, int weight=0)
 
int score () const
 
int find (int wp)
 
bool haslinks ()
 

Public Attributes

vec o
 
float curscore
 
float estscore
 
int weight
 
ushort route
 
ushort prev
 
ushort links [MAXWAYPOINTLINKS]
 

Constructor & Destructor Documentation

ai::waypoint::waypoint ( )
inline
ai::waypoint::waypoint ( const vec o,
int  weight = 0 
)
inline

References links.

Member Function Documentation

int ai::waypoint::find ( int  wp)
inline

References links, loopi(), and ai::MAXWAYPOINTLINKS.

bool ai::waypoint::haslinks ( )
inline

References links.

int ai::waypoint::score ( ) const
inline

References curscore, and estscore.

Referenced by ai::heapscore().

Member Data Documentation

float ai::waypoint::curscore

Referenced by ai::route(), and score().

float ai::waypoint::estscore

Referenced by ai::route(), and score().

ushort ai::waypoint::links[MAXWAYPOINTLINKS]
vec ai::waypoint::o
ushort ai::waypoint::prev

Referenced by ai::route().

ushort ai::waypoint::route

Referenced by ai::route().

int ai::waypoint::weight

Referenced by ai::route().


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