| 136 | } |
| 137 | |
| 138 | void SimpleBotHandler::added(int playerIndex) { |
| 139 | UNUSED(playerIndex); |
| 140 | bz_debugMessage(3, "SimpleBotHandler::added"); |
| 141 | std::string name = "dante_"; |
| 142 | name += bz_format("%d", playerID); |
| 143 | setPlayerData(name.c_str(), NULL, "bot sample", eAutomaticTeam); |
| 144 | joinGame(); |
| 145 | |
| 146 | float vals[3] = {0}; |
| 147 | waypoints.push_back(Waypoint(*this, vals)); |
| 148 | } |
| 149 | |
| 150 | void SimpleBotHandler::removed(void) { |
| 151 | bz_debugMessage(3, "SimpleBotHandler::removed"); |