Esempio n. 1
0
    //public void SetMyExitSpot(ExitSpot bo) {
    //    if (MyExitSpot != null) {
    //        throw new UnityException ("Oops! Trying to set a Space's MyExitSpot, but that Space already has an ExitSpot! " + Col + ", " + Row);
    //    }
    //    MyExitSpot = bo;
    //}

    public void AddTile(Tile _bo)
    {
        if (MyTiles.Contains(_bo))
        {
            throw new UnityException("Oops! Trying to add a Tile to a Space, but that Space already HAS that Tile: " + _bo.GetType() + ". " + Col + ", " + Row);
        }
        MyTiles.Add(_bo);
    }
Esempio n. 2
0
        public Game(GameDto dto, IMapper mapper)
            : base(dto.Board)
        {
            mapper.Map(dto, this);

            MyOriginalTiles = (char[])MyTiles.Clone();
            Move            = new MoveBase(this);
        }
Esempio n. 3
0
 public void RemoveTile(Tile _bo)
 {
     MyTiles.Remove(_bo);
 }