Examples of MakeAccusationEvent


Examples of clueless.events.MakeAccusationEvent

  {
    Theory theory;
    //TODO:  Do we really need to pass which player suggested it or can the server deduce that?
    theory = new Theory(Theory.Type.ACCUSATION, selectedWeapon, selectedCharacter, selectedRoom, controller.getCurrentPlayer());
    //TODO: CC - check if is server, then send the MakeAccusation message?
    controller.fireMakeAccusationEvent(new MakeAccusationEvent(this, theory));
  }
View Full Code Here

Examples of clueless.events.MakeAccusationEvent

    endTurn.setEnabled(false);

    makeAccusation.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
        //Show accusation view
        controller.fireMakeAccusationEvent(new MakeAccusationEvent(this, null));
      }
    });


    makeSuggestion.addActionListener(new ActionListener() {
View Full Code Here

Examples of clueless.events.MakeAccusationEvent

      fireCharacterSelectedEvent(new CharacterSelectedEvent(this,
          ((CharacterSelectedMessage) event.getMessage()).getCharacter()));
      return;
    }else if(event.getMessage() instanceof AccusationMessage){
      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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.