LI2 Roguelite
Public Attributes | List of all members
state Struct Reference

Sructure of the game state. More...

#include <state.h>

Collaboration diagram for state:
Collaboration graph
[legend]

Public Attributes

unsigned long int turn
 
int mode
 
Mapmap
 
int first_pass
 
int second_pass
 
int wall_prob
 
Playerplayer
 
Monster ** monsters
 
int nMonsters
 

Detailed Description

Sructure of the game state.

Parameters
turnThe current turn of the game
modeThe mode of the game, 0: normal, 1: distance, 2 vision, -1: exit mode
mapThe map of the game, contains the cells, items and projectiles
first_passThe first pass is used in the generation of the map
second_passThe second pass is used in the generation of the map as well
wall_probThe probability of a wall to be generated, default is 40%
playerThe player of the game, contains the inventory
monstersThe monsters of the game (array of pointers)
nMonstersThe number of monsters

Member Data Documentation

◆ first_pass

int state::first_pass

◆ map

Map* state::map

◆ mode

int state::mode

◆ monsters

Monster** state::monsters

◆ nMonsters

int state::nMonsters

◆ player

Player* state::player

◆ second_pass

int state::second_pass

◆ turn

unsigned long int state::turn

◆ wall_prob

int state::wall_prob

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