getHeight
getHeight: (ItemLayer) -> numberThe pile's height: the tallest object on its tile, which the items are drawn on top of.
scene:tileAt(…):getItemLayer()| Method | Returns | Description |
|---|---|---|
getHeight() | number | The pile's height: the tallest object on its tile, which the items are drawn on top of. |
getTop() | TileItem? | The most valuable item, drawn first (walk the rest with Tile:getGroundItems()). |
getMiddle() | TileItem? | The second item drawn, if any (the next most valuable of another id). |
getBottom() | TileItem? | The third item drawn, if any. |
getHash() | number | The pile's scene tag (type 3); past 2^53 (it raises) for a pile of world view 2 or above: getHashString(). |
getHashString() | string | getHash() as its decimal string, exact for every world view. |
getX() | number | The local x of its tile's centre. |
getY() | number | The local y of its tile's centre. |
getZ() | number | The ground height at its tile, where it was placed. |
getPlane() | number | The plane of its tile. |
getWorldView() | WorldView | The world view it is in. |
getWorldLocation() | WorldPoint | Its tile's world location. |
getLocalLocation() | LocalPoint | Its tile's centre as a local point. |
equals(any) | boolean | Whether other equals this ItemLayer, as == answers it (false for a value of another class). |
| Method | Returns | Description |
|---|---|---|
Tile.getItemLayer | ItemLayer? | Its item pile, if any items lie on it. |
getHeightgetHeight: (ItemLayer) -> numberThe pile's height: the tallest object on its tile, which the items are drawn on top of.
getTopgetTop: (ItemLayer) -> TileItem?The most valuable item, drawn first (walk the rest with Tile:getGroundItems()).
getMiddlegetMiddle: (ItemLayer) -> TileItem?The second item drawn, if any (the next most valuable of another id).
getBottomgetBottom: (ItemLayer) -> TileItem?The third item drawn, if any.
getHashgetHash: (ItemLayer) -> numberThe pile's scene tag (type 3); past 2^53 (it raises) for a pile of world view 2 or above: getHashString().
getHashStringgetHashString: (ItemLayer) -> stringgetHash() as its decimal string, exact for every world view.
getXgetX: (ItemLayer) -> numberThe local x of its tile's centre.
getYgetY: (ItemLayer) -> numberThe local y of its tile's centre.
getZgetZ: (ItemLayer) -> numberThe ground height at its tile, where it was placed.
getPlanegetPlane: (ItemLayer) -> numberThe plane of its tile.
getWorldViewgetWorldView: (ItemLayer) -> WorldViewThe world view it is in.
getWorldLocationgetWorldLocation: (ItemLayer) -> WorldPointIts tile's world location.
getLocalLocationgetLocalLocation: (ItemLayer) -> LocalPointIts tile's centre as a local point.
equalsequals: (ItemLayer, any) -> booleanWhether other equals this ItemLayer, as == answers it (false for a value of another class).