dminer.core.minetypes

Undocumented in source.

Members

Aliases

CellArray
alias CellArray = Array!(cell_t)
Undocumented in source.
FloatArray
alias FloatArray = Array!(float)
Undocumented in source.
IntArray
alias IntArray = Array!(int)
Undocumented in source.
Vector2dArray
alias Vector2dArray = Array!(Vector2d)
Undocumented in source.
Vector3dArray
alias Vector3dArray = Array!(Vector3d)
Undocumented in source.
cell_t
alias cell_t = ubyte
Undocumented in source.

Enums

Dir
enum Dir

World direction

DirMask
enum DirMask
Undocumented in source.

Functions

bitsFor
int bitsFor(int n)

returns number of bits to store integer

mySign
int mySign(int n)

returns 0 for 0, 1 for negatives, 2 for positives

opposite
Dir opposite(Dir d)

returns opposite direction to specified direction

turnDown
Dir turnDown(Dir d)
Undocumented in source. Be warned that the author may not have intended to support it.
turnLeft
Dir turnLeft(Dir d)
Undocumented in source. Be warned that the author may not have intended to support it.
turnRight
Dir turnRight(Dir d)
Undocumented in source. Be warned that the author may not have intended to support it.
turnUp
Dir turnUp(Dir d)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

DIRECTION_VECTORS
Vector3d[6] DIRECTION_VECTORS;
Undocumented in source.
ZERO3
Vector3d ZERO3;
Undocumented in source.

Structs

Array
struct Array(T)
Undocumented in source.
Array3d
struct Array3d(T)

3d array[+-size, +-size, +-size] of T

Direction
struct Direction
Undocumented in source.
Position
struct Position
Undocumented in source.
Random
struct Random
Undocumented in source.
Vector2d
struct Vector2d
Undocumented in source.
Vector3d
struct Vector3d

Integer 3d vector: x,y,z

Variables

BOUND_BOTTOM
cell_t BOUND_BOTTOM;
Undocumented in source.
BOUND_SKY
cell_t BOUND_SKY;
Undocumented in source.
END_OF_WORLD
cell_t END_OF_WORLD;
Undocumented in source.
NO_CELL
cell_t NO_CELL;
Undocumented in source.
RANDOM_ADDEND
ulong RANDOM_ADDEND;
Undocumented in source.
RANDOM_MASK
ulong RANDOM_MASK;
Undocumented in source.
RANDOM_MULTIPLIER
ulong RANDOM_MULTIPLIER;
Undocumented in source.
VISITED_CELL
cell_t VISITED_CELL;
Undocumented in source.
VISITED_OCCUPIED
cell_t VISITED_OCCUPIED;
Undocumented in source.
ZERO2
Vector2d ZERO2;
Undocumented in source.

Meta