AStar3D::PathPoint Class Reference

#include <astar2.h>

Inheritance diagram for AStar3D::PathPoint:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PathPoint (const MapCoordinate3D &mc, int dist_, int enterHeight_, bool hasAttacked_)
int getRealHeight ()
MapCoordinate3D getRealPos ()
void write (tnstream &stream) const
void read (tnstream &stream)

Static Public Member Functions

static PathPoint newFromStream (tnstream &stream)

Public Attributes

int dist
int enterHeight
bool hasAttacked

Detailed Description

Definition at line 112 of file astar2.h.


Constructor & Destructor Documentation

AStar3D::PathPoint::PathPoint ( const MapCoordinate3D mc,
int  dist_,
int  enterHeight_,
bool  hasAttacked_ 
) [inline]

Definition at line 115 of file astar2.h.


Member Function Documentation

int AStar3D::PathPoint::getRealHeight (  )  [inline]

Definition at line 117 of file astar2.h.

References enterHeight, and MapCoordinate3D::getNumericalHeight().

Referenced by getRealPos().

MapCoordinate3D AStar3D::PathPoint::getRealPos (  )  [inline]

Definition at line 118 of file astar2.h.

References getRealHeight(), MapCoordinate3D::setnum(), MapCoordinate::x, and MapCoordinate::y.

void AStar3D::PathPoint::write ( tnstream stream  )  const

Reimplemented from MapCoordinate3D.

Definition at line 956 of file astar2.cpp.

References dist, enterHeight, hasAttacked, MapCoordinate::write(), and tnstream::writeInt().

void AStar3D::PathPoint::read ( tnstream stream  ) 

Reimplemented from MapCoordinate3D.

Definition at line 965 of file astar2.cpp.

References dist, enterHeight, hasAttacked, MapCoordinate::read(), and tnstream::readInt().

Referenced by newFromStream().

AStar3D::PathPoint AStar3D::PathPoint::newFromStream ( tnstream stream  )  [static]

Definition at line 975 of file astar2.cpp.

References read().


Member Data Documentation

int AStar3D::PathPoint::dist

Definition at line 118 of file astar2.h.

Referenced by read(), and write().

int AStar3D::PathPoint::enterHeight

Definition at line 120 of file astar2.h.

Referenced by getRealHeight(), read(), and write().

bool AStar3D::PathPoint::hasAttacked

Definition at line 121 of file astar2.h.

Referenced by read(), and write().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:21 2012 for Advanced Strategic Command by  doxygen 1.5.1