Example #1
0
 //Throws error if tile combination is invalid
 private void CheckTileIntegrity()
 {
     if ((type.IsWall() || type.IsStair()) && !contained.ContainsNone())
     {
         throw new Exception("Tile of type " + type + " can't have any contained object ");
     }
 }