| 130 | |
| 131 | |
| 132 | BaseLocalPlayer* getLocalPlayer(PlayerId id) { |
| 133 | LocalPlayer* myTank = LocalPlayer::getMyTank(); |
| 134 | if (myTank->getId() == id) { return myTank; } |
| 135 | #ifdef ROBOT |
| 136 | for (int i = 0; i < numRobots; i++) { |
| 137 | if (robots[i] && robots[i]->getId() == id) { |
| 138 | return robots[i]; |
| 139 | } |
| 140 | } |
| 141 | #endif |
| 142 | return NULL; |
| 143 | } |
| 144 | |
| 145 | |
| 146 | TeamColor PlayerIdToTeam(PlayerId id) { |
no test coverage detected