Roguelike
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Public Attributes | List of all members
MapTile Struct Reference

#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
 

Detailed Description

The definition for the tiles used to construct the world map.

Member Function Documentation

bool MapTile::operator!= ( const MapTile rhs) const
inline

!= operator for MapTiles.

bool MapTile::operator== ( const MapTile rhs) const
inline

Comparison operator for MapTiles.

Member Data Documentation

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.

Todo:
Change this so that it is a list of the mobs to spawn
int MapTile::id

A sequential id assigned to tiles for accessing them.


The documentation for this struct was generated from the following file: