Пример #1
0
        public List <UnitPosition> GetDeployment()
        {
            List <UnitPosition> output = new List <UnitPosition>();

            foreach (var unit in Units)
            {
                if (!unit.Deployed)
                {
                    continue;
                }
                UnitPosition unitPosition = new UnitPosition(unit.Id, unit.Hex.Position);
                output.Add(unitPosition);
            }
            return(output);
        }
Пример #2
0
 public UnitDeployment(UnitPosition unit)
 {
     Unit = unit;
 }