Cell

Represents a single cell in the Isodi 3D space.

Constructors

this
this(Display display, Position position, string type)

Members

Functions

getDecoration
Pack.Resource!string[] getDecoration(ResourceOptions* tileOptions)
getNeighbor
Cell getNeighbor(ubyte direction)

Get a neighbor in given direction.

getSide
Pack.Resource!string[4] getSide()
getTile
Pack.Resource!string getTile()
getVisualNeighbor
Cell getVisualNeighbor(ubyte direction)

Get a visual neighbour in given direction — this will take cell offset into account.

Mixins

__anonymous
mixin Object3D.ImplementConst
Undocumented in source.

Static functions

make
Cell make(Display display, Position position, string type)

Create a cell with the current renderer.

Variables

seed
ulong seed;

Seed to use for RNG calls related to generation of this cell's resources.

type
string type;

Type of the cell.

Mixed In Members

From mixin Object3D.ImplementConst

position
const(Position) position()
Undocumented in source. Be warned that the author may not have intended to support it.
visualPosition
const(Position) visualPosition()

Get the position the cell is displayed on.

offset
const(Position) offset(Position value)

Set an offset for the visual position.

resetOffset
void resetOffset()

Reset the offset

Inherited Members

From Object3D

display
Display display;

Display this object is connected to.

position
const(Position) position()

Get the current position of the object.

visualPosition
const(Position) visualPosition()

Get the current visual position of the object.

Implement
mixintemplate Implement()

Add a basic implementation for the position as a property, includes a setter.

ImplementConst
mixintemplate ImplementConst()

Implement the position as a const property. _position and _visualPosition must be set in constructor.

Meta