Package clueless.events

Examples of clueless.events.CharacterSelectedEvent


    submit.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent ae) {
        int selection = characterMenu.getSelectedIndex();
        characterChoice = (CharacterName)characterMenu.getItemAt(selection);
        controller.fireCharacterSelectedEvent(new CharacterSelectedEvent(this, characterChoice));
        jfrm.setVisible(false);

        /* TODO: There is still a chance that a user's choice may not be
         * available even with the updating menu.  If the server cannot
         * honor user choice, then it should send a message display a
View Full Code Here


      if(isServer)
      {
        server.sendAll(msg);
      }
    }else if(event.getMessage() instanceof CharacterSelectedMessage) {
      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()));
View Full Code Here

TOP

Related Classes of clueless.events.CharacterSelectedEvent

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.