com.github.thehilikus.jrobocom.events.LeaderChangedEvent 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 java.util.List;
import com.github.thehilikus.jrobocom.Player;
/**
* Event generated when the player currently in the lead changed
*
* @author hilikus
*/
public class LeaderChangedEvent extends EventObject {
private static final long serialVersionUID = 4880896479958718623L;
private List leaders;
/**
* Constructs a change of leader event
*
* @param source who triggered the event
* @param pLeaders new list of leaders
*/
public LeaderChangedEvent(Object source, List pLeaders) {
super(source);
leaders = pLeaders;
}
/**
* @return the leaders
*/
public List getLeaders() {
return leaders;
}
}