Package controller

Examples of controller.Attack


   
    /*When player choice a specific command just pass the
     * command name as message then, and when execute this
     * command just like this: command.execute(Character caller, Character target) */
    commands.put("Moving", new Move());    
    commands.put("Attacking", new Attack());//Those two commands can be use for all characters.
   
    //commands.put("Healing", new Healing());     //Those commands only for Player's characters.
    //commands.put("Waiting", new Wait());
    //commands.put("Trading", new Trade());
    //commands.put("UsingItem", new UseItem(item));//This should be several Items. So it should write
View Full Code Here


        JOptionPane.showMessageDialog(null, "You have already used your action");
    }
     
    else if(e.getX() > 625 && e.getX() < 955 && e.getY() > 290 && e.getY() < 330) {
      if(caller!= null && theGame.getAllies().contains(caller) && !caller.ifActioned()) {
        nextCommand = new Attack();
        acquireTarget = true;
      }
      else
        JOptionPane.showMessageDialog(null, "You have already used your action");
    }
View Full Code Here

TOP

Related Classes of controller.Attack

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.