@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);
  }
Example #2
0
 @Override
 public void removeFromPlayer(GamePlayer player) {
   player.getVictoryPoints().remove(this);
 }
Example #3
0
 @Override
 public void addToPlayer(GamePlayer player) {
   player.getVictoryPoints().add(this);
 }