|
LI2 Roguelite
|
Structure that represents a map in the game. More...
#include <map.h>

Public Attributes | |
| int | width |
| int | height |
| Cell *** | cells |
| int | has_menu |
| Item ** | items |
| int | nr_items |
| Projectile ** | projectiles |
| int | nr_projectiles |
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.
| width | Width of the map (number of columns) |
| height | Height of the map (number of rows) |
| cells | 2D array of cells |
| has_menu | Does the map have a menu? yes if MENU_HEIGHT > 3 * height |
| items | Array of items in the map |
| nr_items | Number of items in the map |
| projectiles | Array of projectiles in the map |
| nr_projectiles | Number of projectiles in the map |
| Cell*** map::cells |
| int map::has_menu |
| int map::height |
| Item** map::items |
| int map::nr_items |
| int map::nr_projectiles |
| Projectile** map::projectiles |
| int map::width |