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

Constructor & Destructor Documentation

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

References links.

Member Function Documentation

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

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

bool ai::waypoint::haslinks ( )

References links.

int ai::waypoint::score ( ) const

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: