Exemple #1
0
 public Figure(int location, int serialNumber, ChipsType type)
 {
     Type               = type;
     Location           = location;
     SerialNumber       = serialNumber;
     IsFree             = true;
     InTheHouseOfBeauty = false;
     InTheHouseOfWater  = false;
 }
Exemple #2
0
 public Player(ChipsType chipsType, Cell[] map, bool isAI = false)
 {
     IsAI       = isAI;
     OwnType    = chipsType;
     OwnFigures = new List <Figure>();
     for (var i = 1; i <= 14; i++)
     {
         if (map[i].State.Type == OwnType)
         {
             OwnFigures.Add(map[i].State);
         }
     }
 }
Exemple #3
0
 public Player(ChipsType chipsType, Cell[] map)
 {
     OwnType    = chipsType;
     IsMan      = false;
     OwnFigures = new List <Figure>();//из Game
     for (var i = 1; i <= 14; i++)
     {
         if (map[i].State.Type == OwnType)
         {
             OwnFigures.Add(map[i].State);
         }
     }
 }