23 #include <boost/circular_buffer.hpp>
33 boost::circular_buffer<Position>
positions(4);
48 for (std::list<Player*>::iterator it = players.begin(); it != players.end(); ++it) {
49 std::clog <<
" - " << (*it)->getTeam() <<
"(" << (*it)->getUniformNumber() <<
"): [" << ((*it)->getPosition()).toString() <<
"," << ((*it)->getVelocity()).toString() <<
"]";
51 std::clog << std::endl;
96 for (std::list<Player*>::iterator it = players.begin(); it != players.end(); ++it) {
97 std::clog <<
" - " << (*it)->getTeam() <<
"(" << (*it)->getUniformNumber() <<
"): [" << ((*it)->getPosition()).toString() <<
"," << ((*it)->getVelocity()).toString() <<
"]";
99 std::clog << std::endl;
static int UNIFORM_NUMBER
void onMessageReceived(std::string message, int sender)
std::list< Player * > getPlayers()
void setup(WorldModel world)
void changeView(std::string width)
Position The Position lorem Ipsum
boost::circular_buffer< Position > positions(4)
static Position getPosition()
Commands The Commans lorem Ipsum
void onPlayerExecute(WorldModel world)
WorldModel The WorldModel lorem Ipsum
static std::string TEAM_NAME
bool goTo(Position position)
void onCoachExecute(WorldModel world)
void onGoalieExecute(WorldModel world)
PlayOn(Commands *commands, Actions *actions)
static unsigned int GAME_TIME
PlayMode The PlayMode lorem Ipsum
Actions The Actions lorem Ipsum
std::list< Player > players