Exemplo n.º 1
0
        public void EndTurn()
        {
            var units = gameViewModel.ControllingPlayer.Units.Where(unit => unit.IsAlive && !unit.HasMoved);

            foreach (var unit in units)
            {
                var unitPos  = gameViewModel.GetPositionOfUnit(unit);
                var gameMove = new GameMove(unitPos, unitPos, GameMove.GameMoveType.Wait);
                gameViewModel.ApplyMove(gameMove);
            }
        }