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

Structure that represents a map in the game. More...

#include <map.h>

Collaboration diagram for map:
Collaboration graph
[legend]

Public Attributes

int width
 
int height
 
Cell *** cells
 
int has_menu
 
Item ** items
 
int nr_items
 
Projectile ** projectiles
 
int nr_projectiles
 

Detailed Description

Structure that represents a map in the game.

A map is a 2D array of cells with a width and a height. It also contains an array of items distributed in the map.

Parameters
widthWidth of the map (number of columns)
heightHeight of the map (number of rows)
cells2D array of cells
has_menuDoes the map have a menu? yes if MENU_HEIGHT > 3 * height
itemsArray of items in the map
nr_itemsNumber of items in the map
projectilesArray of projectiles in the map
nr_projectilesNumber of projectiles in the map

Member Data Documentation

◆ cells

Cell*** map::cells

◆ has_menu

int map::has_menu

◆ height

int map::height

◆ items

Item** map::items

◆ nr_items

int map::nr_items

◆ nr_projectiles

int map::nr_projectiles

◆ projectiles

Projectile** map::projectiles

◆ width

int map::width

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