Go to the documentation of this file.
24 template <
class state,
class action,
class environment>
27 template<
class state,
class action,
class environment>
30 template <
class state,
class action,
class environment>
35 virtual const char *
GetName() {
return "defaultUnitGroup"; }
39 return (u->
MakeMove(e, e->GetOccupancyInfo(), si,a));
50 for (
unsigned int x = 0; x <
members.size(); x++)
61 for (
unsigned int x = 0; x <
members.size(); x++)
72 for (
unsigned int x = 0; x <
members.size(); x++)
85 for (
unsigned int x = 0; x <
members.size(); x++)
98 std::vector<Unit<state, action, environment> *>
members;
void SetUnitGroup(UnitGroup< state, action, environment > *_group)
unsigned int GetNumMembers()
virtual void StartNewTrial(StatCollection *c)
virtual void UpdateLocation(environment *, state &, bool success, SimulationInfo< state, action, environment > *)=0
virtual std::vector< Unit< state, action, environment > * > GetMembers()
void AddUnit(Unit< state, action, environment > *u)
Unit< state, action, environment > * GetMember(int which) const
void RemoveUnit(Unit< state, action, environment > *u)
virtual void UpdateLocation(Unit< state, action, environment > *u, environment *e, state &loc, bool success, SimulationInfo< state, action, environment > *si)
The StatCollection class is for collecting stats across different parts of the simulation.
std::vector< Unit< state, action, environment > * > members
virtual const char * GetName()
virtual bool MakeMove(environment *, OccupancyInterface< state, action > *, SimulationInfo< state, action, environment > *, action &a)=0
virtual bool MakeMove(Unit< state, action, environment > *u, environment *e, SimulationInfo< state, action, environment > *si, action &a)
virtual void OpenGLDraw(const environment *, const SimulationInfo< state, action, environment > *) const