Package controller

Examples of controller.Move


    alive = true;
   
    /*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());
View Full Code Here


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

TOP

Related Classes of controller.Move

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.