use of de.gg.game.model.votes.ImpeachmentBallot in project ProjektGG by eskalon.
the class ServersideActionHandler method onImpeachmentVoteArranged.
@Override
public boolean onImpeachmentVoteArranged(short targetCharacterId, short clientId) {
PositionType t = world.getCharacters().get(targetCharacterId).getPosition();
if (t != null) {
// TODO überprüfen, ob nicht bereits ein anderer einen Vote
// initiiert hat
world.getMattersToHoldVoteOn().add(new ImpeachmentBallot(world, t, world.getPlayer(clientId).getCurrentlyPlayedCharacterId()));
clientResultListeners.onImpeachmentVoteArranged(targetCharacterId, world.getPlayer(clientId).getCurrentlyPlayedCharacterId());
return true;
}
return false;
}
Aggregations