DungeonCrawl
|
Exposes functions for working with abilities. More...
#include "../common.h"
#include "../database/database.h"
#include "../memory/memory_management.h"
#include "damage.h"
Go to the source code of this file.
Data Structures | |
struct | ability_t |
struct | ability_table_t |
Typedefs | |
typedef struct ability_t | ability_t |
Functions | |
ability_table_t * | init_ability_table (memory_pool_t *memory_pool, const db_connection_t *db_connection) |
Initialize the ability table, allocates memory and returns the pointer to the table. | |
void | free_ability_table (memory_pool_t *memory_pool, ability_table_t *table) |
Free the ability table, deallocates memory in the memory pool. |
Exposes functions for working with abilities.
Definition in file ability.h.
enum ability_names_t |
Definition at line 14 of file ability.h.
void free_ability_table | ( | memory_pool_t * | memory_pool, |
ability_table_t * | table ) |
Free the ability table, deallocates memory in the memory pool.
memory_pool | Pointer to the memory pool for deallocation. |
table | Pointer to the ability table to be freed. |
Definition at line 45 of file ability.c.
ability_table_t * init_ability_table | ( | memory_pool_t * | memory_pool, |
const db_connection_t * | db_connection ) |
Initialize the ability table, allocates memory and returns the pointer to the table.
memory_pool | Pointer to the memory pool for allocation. |
db_connection | Pointer to the database connection |
Definition at line 16 of file ability.c.