Package org.ggp.base.player.gamer.event

Examples of org.ggp.base.player.gamer.event.GamerUnrecognizedMatchEvent


        // we're currently playing. If we're not playing a match, or we're
        // playing a different match, send back "busy".
    if (gamer.getMatch() == null || !gamer.getMatch().getMatchId().equals(matchId))
    {
        GamerLogger.logError("GamePlayer", "Got abort message not intended for current game: ignoring.");
      gamer.notifyObservers(new GamerUnrecognizedMatchEvent(matchId));
      return "busy";
    }

    // Mark the match as aborted and notify observers
    gamer.getMatch().markAborted();
View Full Code Here


  {
      // Ensure that we aren't already playing a match. If we are,
      // ignore the message, saying that we're busy.
        if (gamer.getMatch() != null) {
            GamerLogger.logError("GamePlayer", "Got start message while already busy playing a game: ignoring.");
            gamer.notifyObservers(new GamerUnrecognizedMatchEvent(matchId));
            return "busy";
        }

        // Create the new match, and handle all of the associated logistics
        // in the gamer to indicate that we're starting a new match.
View Full Code Here

        // we're currently playing. If we're not playing a match, or we're
        // playing a different match, send back "busy".
    if (gamer.getMatch() == null || !gamer.getMatch().getMatchId().equals(matchId))
    {
        GamerLogger.logError("GamePlayer", "Got stop message not intended for current game: ignoring.");
      gamer.notifyObservers(new GamerUnrecognizedMatchEvent(matchId));
      return "busy";
    }

    //TODO: Add goal values
    if(moves != null) {
View Full Code Here

  {
      // First, check to ensure that this play request is for the match
      // we're currently playing. If we're not playing a match, or we're
      // playing a different match, send back "busy".
    if (gamer.getMatch() == null || !gamer.getMatch().getMatchId().equals(matchId)) {
      gamer.notifyObservers(new GamerUnrecognizedMatchEvent(matchId));
      GamerLogger.logError("GamePlayer", "Got play message not intended for current game: ignoring.");
      return "busy";
    }

    if (moves != null) {
View Full Code Here

TOP

Related Classes of org.ggp.base.player.gamer.event.GamerUnrecognizedMatchEvent

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.