GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
ItemFuncs Struct Reference

The set of functions that each item type implements. More...

#include <item.h>

Data Fields

Item *(* roll_new )(enum RngSequence key)
 
int(* get_buy_price )(Item *item)
 
bool(* can_acquire )(Item *item)
 
void(* acquire )(Item *item)
 
void(* dispose )(Item **item)
 

Detailed Description

The set of functions that each item type implements.

Definition at line 93 of file item.h.

Field Documentation

◆ acquire

void(* acquire) (Item *item)

Definition at line 102 of file item.h.

◆ can_acquire

bool(* can_acquire) (Item *item)

Definition at line 101 of file item.h.

◆ dispose

void(* dispose) (Item **item)

Definition at line 103 of file item.h.

◆ get_buy_price

int(* get_buy_price) (Item *item)

Definition at line 100 of file item.h.

◆ roll_new

Item *(* roll_new) (enum RngSequence key)

All items must implement the following since they are called by the shop and all items must be capable of appearing in the shop.

Definition at line 99 of file item.h.


The documentation for this struct was generated from the following file: