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

com.github.thehilikus.jrobocom.events.LeaderChangedEvent 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 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy