/// <summary> /// Get evacuation element for base coordinate of given wall element position /// </summary> /// <param name="wep">Wall element position</param> /// <returns>Return evacuation element with given coords, null if such coordinates are unmodelled</returns> public EvacuationElement Get(WallElementPosition wep) { return Get(wep.Floor.Number, wep.Row, wep.Col); }
/// <summary> /// Set given wall element with gicen coordinates and orientation /// </summary> /// <param name="wep">Wall place position</param> /// <param name="element">Wall element</param> /// <returns>True if there was at least one floor tile, adjoning this coordinates, false otherwise</returns> private bool PlaceWallElement(WallElementPosition wep, IWallElement element) { TilePosition tp = wep.GetTilePosition(); Tile t = Get(tp.Row, tp.Col); if (t != null) { t.SetSide(wep.Orientation, element); return true; } return false; }