Package org.ggp.base.player.event

Examples of org.ggp.base.player.event.PlayerTimeEvent


    gamer.setRoleName(roleName);
    gamer.notifyObservers(new GamerNewMatchEvent(match, roleName));

    // Finally, have the gamer begin metagaming.
    try {
      gamer.notifyObservers(new PlayerTimeEvent(gamer.getMatch().getStartClock() * 1000));
      gamer.metaGame(gamer.getMatch().getStartClock() * 1000 + receptionTime);
    } catch (MetaGamingException e) {
        GamerLogger.logStackTrace("GamePlayer", e);

        // Upon encountering an uncaught exception during metagaming,
View Full Code Here


    if (moves != null) {
      gamer.getMatch().appendMoves(moves);
    }

    try {
      gamer.notifyObservers(new PlayerTimeEvent(gamer.getMatch().getPlayClock() * 1000));
      return gamer.selectMove(gamer.getMatch().getPlayClock() * 1000 + receptionTime).toString();
    } catch (MoveSelectionException e) {
        GamerLogger.logStackTrace("GamePlayer", e);
      return "nil";
    }
View Full Code Here

TOP

Related Classes of org.ggp.base.player.event.PlayerTimeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.