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

State machine instance. More...

#include <state_machine.h>

Data Fields

StateCallback active_update
 Pointer to the active update function in state_infos
 
StateInfostate_infos
 Array of StateCallbacks , one entry per state.
 
unsigned int num_infos
 Number of elements in the state_infos array.
 
int state
 The current state of the state machine, the offset into state_infos.
 
bool registered
 Flag to determine if statemachine is already running it's active_update function.
 

Detailed Description

State machine instance.

Definition at line 48 of file state_machine.h.

Field Documentation

◆ active_update

StateCallback active_update

Pointer to the active update function in state_infos

Definition at line 53 of file state_machine.h.

◆ num_infos

unsigned int num_infos

Number of elements in the state_infos array.

Definition at line 63 of file state_machine.h.

◆ registered

bool registered

Flag to determine if statemachine is already running it's active_update function.

Definition at line 73 of file state_machine.h.

◆ state

int state

The current state of the state machine, the offset into state_infos.

Definition at line 68 of file state_machine.h.

◆ state_infos

StateInfo* state_infos

Array of StateCallbacks , one entry per state.

Definition at line 58 of file state_machine.h.


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