@Override
  public void execute() {
    GamePlayer victim = gameServer.getGame().getPlayerByID(robPlayer.getVictimID());
    if (victim != null) {
      robPlayer.setStolenResource(victim.getResources().getRandom(gameServer.getRandom()));
    }

    gameServer.getGame().performAction(robPlayer);
  }
Beispiel #2
0
 @Override
 public void removeFromPlayer(GamePlayer player) {
   player.getVictoryPoints().remove(this);
 }
Beispiel #3
0
 @Override
 public void addToPlayer(GamePlayer player) {
   player.getVictoryPoints().add(this);
 }