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