mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2025-01-04 07:53:39 +01:00
23 lines
561 B
C
23 lines
561 B
C
|
#ifndef GAME_H
|
||
|
#define GAME_H
|
||
|
|
||
|
#include "mapstruct.h"
|
||
|
#include "player.h"
|
||
|
|
||
|
/* This struct will contain all the data of the game. It will make it possible
|
||
|
* to pass it to the NPCs to let them interact with the player and the rest of
|
||
|
* the world. */
|
||
|
typedef struct {
|
||
|
Map *map_level; /* The level that the player is currently playing */
|
||
|
Player player; /* The player data (see player.h). */
|
||
|
} Game;
|
||
|
|
||
|
/* (Mibi88) TODO: Describe what this function is doing. */
|
||
|
void game_logic(Game *game);
|
||
|
|
||
|
/* Draws everything on screen. */
|
||
|
void draw(Game *game);
|
||
|
|
||
|
#endif
|
||
|
|