com.github.thehilikus.jrobocom.events.PlayerEliminatedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jrobocom-core Show documentation
Show all versions of jrobocom-core Show documentation
The game core infrastructure
package com.github.thehilikus.jrobocom.events;
import java.util.EventObject;
import com.github.thehilikus.jrobocom.Player;
/**
* Marks the elimination of a player from the game
*
* @author hilikus
*/
public class PlayerEliminatedEvent extends EventObject {
private static final long serialVersionUID = -2850419114550927108L;
private Player elim;
/**
* @param source
* @param dead player eliminated
*/
public PlayerEliminatedEvent(Object source, Player dead) {
super(source);
elim = dead;
}
/**
* @return the player that got eliminated
*/
public Player getEliminatedPlayer() {
return elim;
}
}