GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
item_funcs.h File Reference

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

ItemFuncsget_item_type_funcs (enum ItemType type)
 Returns the function table for a given item type.
 

Detailed Description

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.

Function Documentation

◆ get_item_type_funcs()

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.

Parameters
typeThe item type whose function table to retrieve.
Returns
Pointer to the ItemFuncs table for type, or NULL if type is invalid or has no implemented functions.

Definition at line 39 of file item_funcs.c.