Refactor/shop (#475)
* initial commit, DOES NOT COMPILE * Rename joker interactions file to `joker_row` * IT'S WORKIIING (now to make it pretty lol) * fixed rebase issues * fix rebase + undo state machine changes * Document shop state functions * clang format * fix reroll cost not appearing on shop init * Move generic SpriteObject text/price printing functions to sprite.c + some minor fixes * Resolve weird defines/include order issue * clang format * Implement suggestions from @ricfehr3 * clang format * clang format * fix rebase * Implement sugegstions from @ricfehr3 * Refactored shop to use the Button struct * missed some memsets --------- Co-authored-by: MathisMartin31 <mathis.martin31@gmail.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @file shop.h
|
||||
*
|
||||
* @brief Shop state functions.
|
||||
*/
|
||||
#ifndef GAME_SHOP_H
|
||||
#define GAME_SHOP_H
|
||||
|
||||
/**
|
||||
* @brief Change to the shop background
|
||||
*/
|
||||
void game_shop_change_background(void);
|
||||
|
||||
/**
|
||||
* @brief Shop state initialization
|
||||
*/
|
||||
void game_shop_on_init(void);
|
||||
|
||||
/**
|
||||
* @brief Shop state update
|
||||
*/
|
||||
void game_shop_on_update(void);
|
||||
|
||||
/**
|
||||
* @brief Shop cleanup
|
||||
*/
|
||||
void game_shop_on_exit(void);
|
||||
|
||||
#endif // GAME_SHOP_H
|
||||
Reference in New Issue
Block a user