Ludum Dare 29
HackSoc's entry for the Ludum Dare Jam 29
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Fields
Cell Struct Reference

#include <level.h>

Collaboration diagram for Cell:
Collaboration graph
[legend]

Data Fields

char baseSymbol
 
int colour
 
bool solid
 
bool illuminated
 
unsigned int luminosity
 
struct Moboccupant
 
struct Listitems
 

Detailed Description

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.

Field Documentation

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.


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