All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.thehilikus.jrobocom.events.PlayerEliminatedEvent Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta-02
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy