Package clueless.events

Examples of clueless.events.MakeSuggestionEvent



    makeSuggestion.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
        //Show suggestion view
        controller.fireMakeSuggestionEvent(new MakeSuggestionEvent(this, null));
      }
    });

    endTurn.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent ae)
View Full Code Here


  private void submitSuggestion()
  {
    Theory theory;
    //TODO:  Do we really need to pass which player suggested it or can the server deduce that?
    theory = new Theory(Theory.Type.SUGGESTION, selectedWeapon, selectedCharacter, selectedRoom);
    controller.fireMakeSuggestionEvent(new MakeSuggestionEvent(this, theory));
    jfrm.dispose();
  }
View Full Code Here

      AccusationMessage msg = ((AccusationMessage)event.getMessage());
      this.fireMakeAccusationEvent(new MakeAccusationEvent(event, msg.getTheory()));
      return;
    }else if(event.getMessage() instanceof SuggestionMessage){
      SuggestionMessage msg = ((SuggestionMessage)event.getMessage());
      this.fireMakeSuggestionEvent(new MakeSuggestionEvent(event, msg.getTheory()));
      return;
    }else if (event.getMessage() instanceof SuggestionDisprovedMessage)
    {
     
    }else if(event.getMessage() instanceof SuggestionDisprovedNeedFeedBackMessage){
View Full Code Here

TOP

Related Classes of clueless.events.MakeSuggestionEvent

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.