示例#1
0
 private void RedrawSquadPositions()
 {
     foreach (BattleSquad squad in _playerBattleSquads.Values)
     {
         foreach (BattleSoldier soldier in squad.Soldiers)
         {
             Tuple <int, int> position = _grid.GetSoldierPosition(soldier.Soldier.Id);
             BattleView.MoveSoldier(soldier.Soldier.Id,
                                    new Vector2(position.Item1, position.Item2));
         }
     }
     foreach (BattleSquad squad in _opposingBattleSquads.Values)
     {
         foreach (BattleSoldier soldier in squad.Soldiers)
         {
             Tuple <int, int> position = _grid.GetSoldierPosition(soldier.Soldier.Id);
             BattleView.MoveSoldier(soldier.Soldier.Id,
                                    new Vector2(position.Item1, position.Item2));
         }
     }
 }