DungeonCrawl
|
Implements functionality for working with abilites and the database. More...
Go to the source code of this file.
Macros | |
#define | SQL_SELECT_ALL_ABILITIES "SELECT AB_NUMBER, AB_NAME, AB_ROLLAMOUNT, AB_ACCURACY, AB_RESSOURCECOST, AB_DICESIZE, DA_NUMBER FROM ability, damage JOIN ability_has_damage ON AD_AB_ID = AB_ID AND AD_DA_ID = DA_ID" |
Functions | |
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. |
Implements functionality for working with abilites and the database.
Definition in file ability_database.c.
#define SQL_SELECT_ALL_ABILITIES "SELECT AB_NUMBER, AB_NAME, AB_ROLLAMOUNT, AB_ACCURACY, AB_RESSOURCECOST, AB_DICESIZE, DA_NUMBER FROM ability, damage JOIN ability_has_damage ON AD_AB_ID = AB_ID AND AD_DA_ID = DA_ID" |
Definition at line 11 of file ability_database.c.
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.
Definition at line 64 of file ability_database.c.
ability_init_t * get_ability_table_from_db | ( | const db_connection_t * | db_connection | ) |
Get the ability table from the database.
db_connection | Pointer to the database connection |
Definition at line 13 of file ability_database.c.