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

Structure of a monster. More...

#include <monster.h>

Public Attributes

unsigned int x
 
unsigned int y
 
int health
 
int max_health
 
int attack
 
int defense
 
int is_alive
 
char symbol
 
char * name
 
int color
 
int default_color
 
int pathfinding
 
int gold
 
const char * noise
 
int index
 

Detailed Description

Structure of a monster.

Contains the monster's position, attributes, name, symbol and index.

Parameters
xMonster x coordinate
yMonster y coordinate
healthMonster current hit points
max_healthMonster maximum hit points
attackMonster attack points
defenseMonster defense points
is_aliveIs the Monster is alive?
symbolMonster symbol
nameMonster name
colorThe current color of the monster is affected by bombs
default_colorThe default color of the monster
pathfindingpathfinding type of the Monster
goldMonster gold value when killed
noiseMonster noise
indexMonster index in the monsters array also stored in the cell (used as a pointer)

Member Data Documentation

◆ attack

int monster::attack

◆ color

int monster::color

◆ default_color

int monster::default_color

◆ defense

int monster::defense

◆ gold

int monster::gold

◆ health

int monster::health

◆ index

int monster::index

◆ is_alive

int monster::is_alive

◆ max_health

int monster::max_health

◆ name

char* monster::name

◆ noise

const char* monster::noise

◆ pathfinding

int monster::pathfinding

◆ symbol

char monster::symbol

◆ x

unsigned int monster::x

◆ y

unsigned int monster::y

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