QtCraft API C++ classes QML types Handbook

QcBiomeMap::Area Struct

struct QcBiomeMap::Area

The square of columns a map shows: radius blocks around the centre, one cell per blocksPerCell blocks. More...

Public Functions

int blockX(int cell) const
int blockZ(int cell) const
int cells() const

Public Variables

int blocksPerCell
int centreX
int centreZ
int radius

Detailed Description

Member Function Documentation

int Area::blockX(int cell) const

Returns the world x of the north-west corner of the cells in column cell.

int Area::blockZ(int cell) const

Returns the world z of the north-west corner of the cells in row cell.

int Area::cells() const

Returns the number of cells along each side.

Member Variable Documentation

int Area::blocksPerCell

The side of one cell in blocks.

int Area::radius

Half the side of the square in blocks.