blob: 5cd6b53cf7b5c04a913d7de2dfa28a982f1cebf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include "input.h"
#include "engine/draw_screen.h"
#include <stdint.h>
#include <stdbool.h>
typedef enum {
hh_e_shop_init,
hh_e_shop_main,
hh_e_shop_end
} hh_e_ShopStates;
/** @brief amount of upgrade types */
#define HH_SHOP_UPG_COUNT 2
/** @brief count of visible upgrades in shop */
#define HH_SHOP_UPG_DISPLAY 4
/** @brief all possible upgrades */
typedef enum {
hh_e_UPG_JUMP,
hh_e_UPG_HEALTH
} hh_e_upgrades;
/** @brief init */
void hh_shop_init(hh_e_upgrades* in);
/** @brief deals with displayed entity rendering */
void hh_shop_display(uint8_t selected, hh_e_upgrades* upgrades);
/** @brief moves 'cursor' through selection field */
void hh_shift_selected(uint8_t* pos, bool dir, uint8_t min, uint8_t max);
bool hh_show_Shop();
|