public GameService( VisionService visionService, MovementService movementService, PathingService pathingService ) { VisionService = visionService; MovementService = movementService; PathingService = pathingService; }
public bool TryMove(Game game, Unit unit, IList <int> cells) { if (unit.Owner != game.CurrentPlayer) { return(false); } int[] moveCells = MovementService.TryMove(game, unit, cells); if (moveCells.Length == 0) { return(false); } // TODO: fire "moved" event? return(true); }