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
Level Struct Reference

#include <level.h>

Collaboration diagram for Level:
Collaboration graph
[legend]

Data Fields

List levels
 
Listmobs
 
struct Mobplayer
 
int depth
 
int startx
 
int starty
 
int endx
 
int endy
 
struct Cellcells [LEVELWIDTH][LEVELHEIGHT]
 

Detailed Description

A level is the current part of the game which is active, it gets rendered to the screen, has a bunch of mobs, and a single player. Levels form a doubly-linked list.

Field Documentation

struct Cell* Level::cells[LEVELWIDTH][LEVELHEIGHT]

The map.

int Level::depth

The depth of the level.

int Level::endx
int Level::endy

The x and y positions of the stairs to the next level.

List Level::levels

The list of levels to which this belongs

List* Level::mobs

The list of mobs in the level.

struct Mob* Level::player

The player mob (must also be in mobs).

int Level::startx
int Level::starty

The x and y positions of the stairs from the previous level.


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