Package clueless.events

Examples of clueless.events.SuggestionDisprovedNeedFeedBackEvent


      return;
    }else if (event.getMessage() instanceof SuggestionDisprovedMessage)
    {
     
    }else if(event.getMessage() instanceof SuggestionDisprovedNeedFeedBackMessage){
      this.fireSuggestionDisprovedNeedFeedBackEvent(new SuggestionDisprovedNeedFeedBackEvent(this, ((SuggestionDisprovedNeedFeedBackMessage)event.getMessage()).getSuggestion(), ((SuggestionDisprovedNeedFeedBackMessage)event.getMessage()).getCards()));
    }else if(event.getMessage() instanceof SuggestionDisprovedCardMessage){
      if(isServer && !(client.getPlayer().getUUID().equals(currentPlayer.getUUID())))
      {
        //Forward the message onto the client
        server.send(currentPlayer, event.getMessage());
View Full Code Here


                server.send(theory.getTheorist(), new SuggestionDisprovedCardMessage(player, invalidCards.get(0)));
                server.sendAll(new SuggestionDisprovedMessage(player, theory));
                return;
              } else if(invalidCards.size()>1) {
                // This player has more than one card - we need them to decide which one to show the suggester.
                this.fireSuggestionDisprovedNeedFeedBackEvent(new SuggestionDisprovedNeedFeedBackEvent(this, theory, invalidCards));
                server.sendAll(new SuggestionDisprovedMessage(player, theory));
                server.send(player, new SuggestionDisprovedNeedFeedBackMessage(theory, invalidCards));
                return; //If we hit 1 result, it moves to the next player's turn. Not all cards in the suggestion get proved.
              }
              fireTextStatusEvent(new TextStatusEvent(this, "Theory disproven."));
View Full Code Here

TOP

Related Classes of clueless.events.SuggestionDisprovedNeedFeedBackEvent

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.