Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

praStarUnit Class Reference

A unit which caches path information to speed pra*. More...

#include <praStarUnit.h>

Inheritance diagram for praStarUnit:

Inheritance graph
[legend]
Collaboration diagram for praStarUnit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 praStarUnit (int _x, int _y, unit *_target, praStar *_alg)
 ~praStarUnit ()
const char * getName ()
tDirection makeMove (mapProvider *, reservationProvider *, simulationInfo *simInfo)
 The new makeMove only gives a map.


Private Attributes

pathcache
praStaralgorithm
char name [32]

Detailed Description

A unit which caches path information to speed pra*.


Constructor & Destructor Documentation

praStarUnit::praStarUnit int  _x,
int  _y,
unit _target,
praStar _alg
 

praStarUnit::~praStarUnit  )  [inline]
 


Member Function Documentation

const char* praStarUnit::getName  )  [inline, virtual]
 

Reimplemented from searchUnit.

tDirection praStarUnit::makeMove mapProvider ,
reservationProvider ,
simulationInfo simInfo
[virtual]
 

The new makeMove only gives a map.

The unit simulation won't calculate an mapAbstraction unless it has to. Thus, in simple pathfinding tests, the overhead is saved.

Reimplemented from searchUnit.


Member Data Documentation

praStar* praStarUnit::algorithm [private]
 

Reimplemented from searchUnit.

path* praStarUnit::cache [private]
 

char praStarUnit::name[32] [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Aug 18 03:44:36 2009 for HOG by doxygen 1.3.4