An API for the item functions defined in item.h Separated module from item.c/.h so item_funcs.c can include joker.h and card.h etc. so the item.h doesn't depend on implementations such as jokers and cards. More...
#include "item.h"Go to the source code of this file.
Functions | |
| ItemFuncs * | get_item_type_funcs (enum ItemType type) |
| Returns the function table for a given item type. | |
An API for the item functions defined in item.h Separated module from item.c/.h so item_funcs.c can include joker.h and card.h etc. so the item.h doesn't depend on implementations such as jokers and cards.
Definition in file item_funcs.h.
| ItemFuncs * get_item_type_funcs | ( | enum ItemType | type | ) |
Returns the function table for a given item type.
Looks up the ItemFuncs dispatch table corresponding to type.
| type | The item type whose function table to retrieve. |
type, or NULL if type is invalid or has no implemented functions. Definition at line 39 of file item_funcs.c.