Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3741a371 authored by SZCZEPANSKI Marin's avatar SZCZEPANSKI Marin
Browse files

Add name for structs

parent 2b41d531
No related branches found
No related tags found
No related merge requests found
......@@ -35,18 +35,18 @@ typedef enum Entitytype {
#include "agdbentures.h"
typedef struct {
typedef struct Tile {
int category; // identifier to display the tile
bool obstacle; // whether the player can move on it or not
} tile;
typedef struct {
typedef struct Entity {
int id; // identifier to display and use in events
int category; // used to group in events, like monster, NPC...
int * stats; // any property the entity may have (life points, state...)
} entity;
typedef struct {
typedef struct Map {
char * name; // shop, overworld, dungeon_Nth_level...
tile ** floor; // immobile floor
entity ** entities; // ennemies, NPCs, items, switches... anything used by events
......@@ -60,7 +60,7 @@ typedef struct {
#define MAX_MAPS 256
typedef struct {
typedef struct Map_stack {
map maps[MAX_MAPS];
int length;
} map_stack;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment