public class Wall : WallLike, IGenericDataHolder
- Inherited Members
- Extension Methods
Wall(int, params Point)
Creates a new wall at the given position, with the implicitly given verticality
public Wall(int floor, params Point positions)
The floor that this wall is on.
The positions that the wall should be placed between
The price of building a single wall element
public const int Price = 125
The two wallpapers attached to this Wall, on either one of its sides
[DataMember] public readonly Wallpaper Wallpapers
Draw(Map, GameTime, SpriteBatch, Vector2, Color?, bool, bool)
public override void Draw(Map map, GameTime time, SpriteBatch batch, Vector2 drawPos, Color? overrideColor = null, bool drawOpening = true, bool isInWorld = true)
The map to draw this wall on
The game time
The sprite batch to draw with
The position to draw the wall at, in draw space
A color that this object should be rendered with, instead of its default color
Whether this wall-like object's Opening should be drawn.
Whether this wall-like object is currently in the world, or just a preview.
public WallMode GetDisplayMode()
The wall mode
public override float GetPrice()
Returns whether this wall should be rendered with a lower height than its actual height. If this value returns true, Draw(Map, GameTime, SpriteBatch, Vector2, Color?, bool, bool) only draws the first 5 or so pixels of the wall to allow for a simple view of what is behind the wall. This value is based on the lot visibility, the WallMode and more.
public bool IsDown()
Whether the wall should be rendered down
Called when this wall is added to the given
By default, this method marks surrounding locations dirty for pathfinding and calls NotifyNeighbors(Map).
public override void OnAdded(Map map)
This method is called when this object is loaded from disk.
public override bool Validate(Map map)
false if the object is not valid, true otherwise