|
Ludum Dare 29
HackSoc's entry for the Ludum Dare Jam 29
|
#include <level.h>

Data Fields | |
| char | baseSymbol |
| int | colour |
| bool | solid |
| bool | illuminated |
| unsigned int | luminosity |
| struct Mob * | occupant |
| struct List * | items |
A cell is an individual space in a level, they have a base symbol, may be solid, may contain at most one occupant mob, and a list of items.
| char Cell::baseSymbol |
The symbol of the cell (floor, wall, etc).
| int Cell::colour |
The colour to use to render the cell (if unoccupied).
| bool Cell::illuminated |
Whether the cell is lit by a light or not.
| struct List* Cell::items |
The list of items (may be NULL).
| unsigned int Cell::luminosity |
Number of light sources in the cell
| struct Mob* Cell::occupant |
The occpuant (may be NULL).
| bool Cell::solid |
Whether the cell is solid (impassible) or not.
1.8.7