#include <defs.h>
Public Member Functions | |
bool | operator== (const MapTile &rhs) const |
bool | operator!= (const MapTile &rhs) const |
Public Attributes | |
int | char_count |
int | color |
int | id |
bool | does_spawn |
The definition for the tiles used to construct the world map.
|
inline |
!= operator for MapTiles.
|
inline |
Comparison operator for MapTiles.
int MapTile::char_count |
The number of the tile corresponding to a character mapping. The character of the tile is generated by ascii_lib which is included in the lib/ folder.
int MapTile::color |
The color of the tile. An integer which corresponds to the color of the tile. It is a 24 bit binary number where each 8 bits represents, R, G, or B which has been converted into decimal.
bool MapTile::does_spawn |
True if the tile spawns any mobs.
int MapTile::id |
A sequential id assigned to tiles for accessing them.