WallObject

Group
player
Extends
TileObject
Methods
7
Fields
None

Getting one

scene:tileAt(…):getWallObject()

Methods

MethodReturnsDescription
getConvexHull()Shape?The outline of its first model on the canvas, nil when it does not project, has no readable model or is gone.
getConvexHull2()Shape?The outline of its second model (a corner wall's other side), as getConvexHull().
getRenderable1()Renderable?What the scene draws for its first side, nil when none (or gone).
getRenderable2()Renderable?What the scene draws for its second side, nil when none (or gone).
getOrientationA()numberThe first orientation, a direction flag (1 west, 2 north, 4 east, 8 south; the corners for a diagonal wall).
getOrientationB()numberThe second orientation (a corner wall's other side), else 0.
getConfig()numbertype & 31, orientation >>> 6 & 3, supports items >>> 8 & 1.

Returned by

Method details

getConvexHull

getConvexHull: (WallObject) -> Shape?

The outline of its first model on the canvas, nil when it does not project, has no readable model or is gone.

getOrientationA

getOrientationA: (WallObject) -> number

The first orientation, a direction flag (1 west, 2 north, 4 east, 8 south; the corners for a diagonal wall).

getConfig

getConfig: (WallObject) -> number

type & 31, orientation >>> 6 & 3, supports items >>> 8 & 1.