Package controller.commands

Examples of controller.commands.Move.execute()


  @Override
  public void actionPerformed(ActionEvent arg0) {
    //Still have some problem that how far need to move? Moving and attacking is in different round or in same round?
    Move moving = new Move();
    moving.moveTo(map.getMoveToX(), map.getMoveToY());
    moving.execute(map.getSelectedAlly(), map.getSelectedEnemy());
    Command attacking = new Attack();
    attacking.execute(map.getSelectedAlly(), map.getSelectedEnemy());
  }

}
View Full Code Here


  @Override
  public void actionPerformed(ActionEvent e) {
    Move moving = new Move();
    moving.moveTo(map.getMoveToX(), map.getMoveToY());
    moving.execute(map.getSelectedAlly(), map.getSelectedAlly());
  }

}
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.