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

sharedAMapGroup Class Reference

A group which incrementally builds a map of the world as the units in the group explore the graph. More...

#include <sharedAMapGroup.h>

Inheritance diagram for sharedAMapGroup:

Inheritance graph
[legend]
Collaboration diagram for sharedAMapGroup:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 sharedAMapGroup (mapProvider *)
 ~sharedAMapGroup ()
virtual tDirection makeMove (unit *u, mapProvider *mp, reservationProvider *rp, simulationInfo *simInfo)
virtual void openGLDraw (mapProvider *, simulationInfo *)
virtual MapgetMap ()
virtual mapAbstractiongetMapAbstraction ()
virtual int getNewTileCount ()
virtual void updateLocation (unit *, mapProvider *m, int _x, int _y, bool, simulationInfo *)
 reset the location of a given unit

virtual bool done ()
 Is the group done with their exploration?

void startNewTrial (statCollection *stats)
 Lets the unit group do what it needs to reset a trial.

void logStats (statCollection *stats)
void setVisibilityRadius (int _visibility)
int getVisibilityRadius ()
bool explored (int x, int y)
bool explored (unsigned int _node)
int getNewTileCountPerStep ()
bool seenBefore (int x, int y)

Protected Attributes

mapAbstractionaMap
Mapmap
bitVectorseen
int visRadius
bool sawNewLand
int newTileCount
int newTileCountPerTrial

Detailed Description

A group which incrementally builds a map of the world as the units in the group explore the graph.


Constructor & Destructor Documentation

sharedAMapGroup::sharedAMapGroup mapProvider  ) 
 

sharedAMapGroup::~sharedAMapGroup  ) 
 


Member Function Documentation

bool sharedAMapGroup::done  )  [virtual]
 

Is the group done with their exploration?

Reimplemented in KoenigsGroup, PrioritizedGroup, and PRLRTSkGroup.

bool sharedAMapGroup::explored unsigned int  _node  ) 
 

bool sharedAMapGroup::explored int  x,
int  y
 

Map * sharedAMapGroup::getMap  )  [virtual]
 

Implements mapProvider.

mapAbstraction * sharedAMapGroup::getMapAbstraction  )  [virtual]
 

Implements mapProvider.

virtual int sharedAMapGroup::getNewTileCount  )  [inline, virtual]
 

int sharedAMapGroup::getNewTileCountPerStep  )  [inline]
 

int sharedAMapGroup::getVisibilityRadius  ) 
 

void sharedAMapGroup::logStats statCollection stats  ) 
 

tDirection sharedAMapGroup::makeMove unit u,
mapProvider mp,
reservationProvider rp,
simulationInfo simInfo
[virtual]
 

Reimplemented in KoenigsGroup, patGroup, PrioritizedGroup, and PRLRTSkGroup.

void sharedAMapGroup::openGLDraw mapProvider ,
simulationInfo
[virtual]
 

Reimplemented in KoenigsGroup, PrioritizedGroup, and PRLRTSkGroup.

bool sharedAMapGroup::seenBefore int  x,
int  y
[inline]
 

void sharedAMapGroup::setVisibilityRadius int  _visibility  ) 
 

void sharedAMapGroup::startNewTrial statCollection stats  ) 
 

Lets the unit group do what it needs to reset a trial.

Reimplemented in KoenigsGroup, PrioritizedGroup, and PRLRTSkGroup.

void sharedAMapGroup::updateLocation unit ,
mapProvider m,
int  _x,
int  _y,
bool  ,
simulationInfo
[virtual]
 

reset the location of a given unit


Member Data Documentation

mapAbstraction* sharedAMapGroup::aMap [protected]
 

Map* sharedAMapGroup::map [protected]
 

int sharedAMapGroup::newTileCount [protected]
 

int sharedAMapGroup::newTileCountPerTrial [protected]
 

bool sharedAMapGroup::sawNewLand [protected]
 

bitVector* sharedAMapGroup::seen [protected]
 

int sharedAMapGroup::visRadius [protected]
 


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