Ejemplo n.º 1
0
 public ushort[] GetPlacements()
 {
     return(PlacementCells.ConvertAll <ushort>(x => (ushort)x).ToArray());
 }
Ejemplo n.º 2
0
        public short GetPlacementCell()
        {
            List <short> fighterCells = Fighters.ConvertAll <short>(x => (short)x.CellId);

            return(PlacementCells.Find(x => !fighterCells.Contains(x)));
        }
Ejemplo n.º 3
0
        public bool IsPlacementCellsFree(int count)
        {
            List <short> fighterCells = Fighters.ConvertAll <short>(x => (short)x.CellId);

            return(PlacementCells.Count(x => !fighterCells.Contains(x)) >= count);
        }
Ejemplo n.º 4
0
 public bool IsFull() => Fight.State == FightState.Placement && (m_fighters.Count > PlacementCells.Count() || m_fighters.Count >= 8);