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

org.ggp.base.player.gamer.event.GamerNewMatchEvent Maven / Gradle / Ivy

The newest version!
package org.ggp.base.player.gamer.event;

import org.ggp.base.util.gdl.grammar.GdlConstant;
import org.ggp.base.util.match.Match;
import org.ggp.base.util.observer.Event;

public final class GamerNewMatchEvent extends Event
{
    private final Match match;
    private final GdlConstant roleName;

    public GamerNewMatchEvent(Match match, GdlConstant roleName)
    {
        this.match = match;
        this.roleName = roleName;
    }

    public Match getMatch()
    {
        return match;
    }

    public GdlConstant getRoleName()
    {
        return roleName;
    }

    @Override
    public String toString() {
        return "New match event: match is " + match + "; role is " + roleName;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy