(Player player)
| 373 | } |
| 374 | |
| 375 | public void switchSide(Player player) |
| 376 | { |
| 377 | int otherTeam = Constants.TEAM1; |
| 378 | |
| 379 | if(player.getTeam() == Constants.TEAM1) |
| 380 | { |
| 381 | otherTeam = Constants.TEAM2; |
| 382 | } |
| 383 | |
| 384 | String message = NetworkProtocol.SET_TEAM+"&"+otherTeam+"&"+player.getID(); |
| 385 | serverConnection.sendMessage(message); |
| 386 | } |
| 387 | |
| 388 | public boolean isAngleUp() |
| 389 | { |
no test coverage detected