Package ch.fusun.baron.basic.command

Examples of ch.fusun.baron.basic.command.MoveUnitCommand


      Unit unit = (Unit) object;
      Tile location = unitService.getLocation(unit);
      Dynasty dynasty = playerService.getDynasty(userService.getUser());
      int width = mapService.getWidth();
      int height = mapService.getHeight();
      clientService.execute(new MoveUnitCommand(dynasty, unit, new Tile(
          (location.getX() + getHorizontalDiff() + width) % width,
          (location.getY() + getVerticalDiff() + height) % height)));
    }
  }
View Full Code Here

TOP

Related Classes of ch.fusun.baron.basic.command.MoveUnitCommand

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.