30 return (distance0 < distance1);
43 std::list<Player*> all_players;
44 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
45 all_players.push_back(&(*it));
51 std::list<Player*> all_players;
53 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
54 all_players.push_back(&(*it));
61 std::list<Player*> our_players;
62 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
63 if (it->getTeam().compare(
"our") == 0) {
64 our_players.push_back(&(*it));
71 std::list<Player*> our_players;
73 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
74 if (it->getTeam().compare(
"our") == 0) {
75 our_players.push_back(&(*it));
83 std::list<Player*> opp_players;
84 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
85 if (it->getTeam().compare(
"opp") == 0) {
86 opp_players.push_back(&(*it));
93 std::list<Player*> opp_players;
95 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
96 if (it->getTeam().compare(
"opp") == 0) {
97 opp_players.push_back(&(*it));
105 std::list<Player*> und_players;
106 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
107 if (it->getTeam().compare(
"undefined") == 0) {
108 und_players.push_back(&(*it));
115 std::list<Player*> und_players;
117 for (std::list<Player>::iterator it =
players.begin(); it !=
players.end(); ++it) {
118 if (it->getTeam().compare(
"undefined") == 0) {
119 und_players.push_back(&(*it));
WorldModel(std::list< Player > players, Ball ball)
Position positionToCompare
std::list< Player * > getPlayers()
Player The Player lorem Ipsum
Ball The Ball lorem Ipsum
Position The Position lorem Ipsum
std::list< Player * > getUndPlayersOrderedByDistanceTo(Position position)
bool compareDistances(Player *player0, Player *player1)
std::list< Player > players
std::list< Player * > getOppPlayersOrderedByDistanceTo(Position position)
std::list< Player * > getOurPlayers()
std::list< Player * > getUndPlayers()
std::list< Player * > getPlayersOrderedByDistanceTo(Position position)
std::list< Player * > getOppPlayers()
std::list< Player * > getOurPlayersOrderedByDistanceTo(Position position)
std::list< Player > players
double getDistanceTo(Position position)