HOG2
|
#include <UnitGroup.h>
Public Member Functions | |
virtual | ~UnitGroup () |
virtual const char * | GetName () |
virtual bool | MakeMove (Unit< state, action, environment > *u, environment *e, SimulationInfo< state, action, environment > *si, action &a) |
virtual void | UpdateLocation (Unit< state, action, environment > *u, environment *e, state &loc, bool success, SimulationInfo< state, action, environment > *si) |
void | AddUnit (Unit< state, action, environment > *u) |
virtual bool | Done () |
void | RemoveUnit (Unit< state, action, environment > *u) |
virtual void | StartNewTrial (StatCollection *c) |
virtual void | OpenGLDraw (const environment *, const SimulationInfo< state, action, environment > *) const |
virtual std::vector< Unit< state, action, environment > * > | GetMembers () |
unsigned int | GetNumMembers () |
Unit< state, action, environment > * | GetMember (int which) const |
Private Attributes | |
std::vector< Unit< state, action, environment > * > | members |
Definition at line 31 of file UnitGroup.h.
|
inlinevirtual |
Definition at line 33 of file UnitGroup.h.
|
inline |
Definition at line 47 of file UnitGroup.h.
Referenced by Unit< xyLoc, tDirection, MapEnvironment >::SetUnitGroup().
|
inlinevirtual |
Reimplemented in SharedAMapGroup.
Definition at line 59 of file UnitGroup.h.
Referenced by UnitGroup< xyLoc, tDirection, MapEnvironment >::Done().
|
inline |
Definition at line 95 of file UnitGroup.h.
|
inlinevirtual |
Definition at line 93 of file UnitGroup.h.
Referenced by WeightedUnitGroup< state, action, environment >::DrawNextEnvironment(), WeightedUnitGroup< state, action, environment >::GetUnitIndex(), WeightedUnitGroup< state, action, environment >::MakeMove(), and WeightedUnitGroup< state, action, environment >::UpdateLocation().
|
inlinevirtual |
Reimplemented in WeightedUnitGroup< state, action, environment >, and SharedAMapGroup.
Definition at line 35 of file UnitGroup.h.
|
inline |
Definition at line 94 of file UnitGroup.h.
|
inlinevirtual |
Reimplemented in WeightedUnitGroup< state, action, environment >.
Definition at line 37 of file UnitGroup.h.
|
inlinevirtual |
Reimplemented in WeightedUnitGroup< state, action, environment >.
Definition at line 91 of file UnitGroup.h.
|
inline |
Definition at line 70 of file UnitGroup.h.
Referenced by Unit< xyLoc, tDirection, MapEnvironment >::SetUnitGroup().
|
inlinevirtual |
Reimplemented in SharedAMapGroup.
Definition at line 83 of file UnitGroup.h.
|
inlinevirtual |
Reimplemented in WeightedUnitGroup< state, action, environment >.
Definition at line 42 of file UnitGroup.h.
|
private |
Definition at line 98 of file UnitGroup.h.
Referenced by UnitGroup< xyLoc, tDirection, MapEnvironment >::AddUnit(), UnitGroup< xyLoc, tDirection, MapEnvironment >::Done(), UnitGroup< xyLoc, tDirection, MapEnvironment >::GetMember(), UnitGroup< xyLoc, tDirection, MapEnvironment >::GetMembers(), UnitGroup< xyLoc, tDirection, MapEnvironment >::GetNumMembers(), UnitGroup< xyLoc, tDirection, MapEnvironment >::RemoveUnit(), and UnitGroup< xyLoc, tDirection, MapEnvironment >::StartNewTrial().