20 char name[MAX_NAME_LENGTH];
21 potion_type_t effectType;
Defines common macros, types, and global variables for color schemes and utilities.
Exposes functions for working with the database.
Exposes functions for working with the memory management.
const char * potion_type_to_string(potion_type_t type)
Converts a potion type to a string representation.
potion_t * init_potion(potion_t *potion, const char *name, potion_type_t type, int value)
creates a potion object with the given name, type and value
void free_potion(memory_pool_t *memory_pool, potion_t *potion)
Frees the memory allocated for a potion.
potion_table_t * init_potion_table(memory_pool_t *memory_pool, const db_connection_t *db_connection)
initializes a potion table with potions from the database
void free_potion_table(memory_pool_t *memory_pool, potion_table_t *table)
Frees the memory allocated for a potion table.
This struct is used for the database connection in SQLite.