//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); }
public Game(GameDto dto, IMapper mapper) : base(dto.Board) { mapper.Map(dto, this); MyOriginalTiles = (char[])MyTiles.Clone(); Move = new MoveBase(this); }
public void RemoveTile(Tile _bo) { MyTiles.Remove(_bo); }