Package controller.commands

Examples of controller.commands.Move


    this.map = map;
  }
  @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


    this.map = map;
  }

  @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

Related Classes of controller.commands.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.