DungeonCrawl
Loading...
Searching...
No Matches
game_data.h
Go to the documentation of this file.
1
5#ifndef GAME_DATA_H
6#define GAME_DATA_H
7
8#include "combat/ability.h"
9#include "item/gear.h"
10#include "item/potion.h"
11
12extern ability_table_t* ability_table;
13extern character_t* goblin;
14extern character_t* player;
15extern potion_t* healing_potion;
16extern gear_table_t* gear_table;
17extern potion_table_t* potion_table;
18
28int init_game_data(void);
35int free_game_data(void);
44int reset_goblin(void);
45
55int init_player(char* name);
56
63int reset_player(void);
64
65#endif//GAME_DATA_H
Exposes functions for working with abilities.
int init_game_data(void)
Initializes game data for the application.
Definition game_data.c:23
int reset_goblin(void)
Resets the goblin character data by deallocating the current goblin instance and creating a new one.
Definition game_data.c:46
int free_game_data(void)
Frees game-related data structures and resources, such as ability tables, characters,...
Definition game_data.c:37
int reset_player(void)
Resets the player character to its initial state, clearing all abilities, items, and stats.
Definition game_data.c:77
int init_player(char *name)
Initializes the player character with default abilities and items.
Definition game_data.c:57
Exposes functions for working with gear.
Exposes functions for working with potions.