DungeonCrawl
Loading...
Searching...
No Matches
ability_database.h
Go to the documentation of this file.
1
5#ifndef ABILITY_DATABASE_H
6#define ABILITY_DATABASE_H
7
9#include "../database.h"
10
16typedef struct ability_init_t {
17 int ability_number;// The index of the ability in the table
18 char* name;
19 int roll_amount;
20 int accuracy;
21 int resource_cost;
22 dice_size_t dice_size;
23 damage_type_t damage_type;
25
33
38void free_ability_table_from_db(ability_init_t* ability_init_table);
39
40#endif//ABILITY_DATABASE_H
Exposes functions for working with abilities.
ability_init_t * get_ability_table_from_db(const db_connection_t *db_connection)
Get the ability table from the database.
void free_ability_table_from_db(ability_init_t *ability_init_table)
Clean up the ability table Call this function to free the memory allocated for the ability table.
Exposes functions for working with the database.
To get the ability table from the database, we need to define a struct This struct is for the initial...
This struct is used for the database connection in SQLite.
Definition database.h:22