forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
examine_item_menu.h
51 lines (41 loc) · 1.49 KB
/
examine_item_menu.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#ifndef CATA_SRC_EXAMINE_ITEM_MENU_H
#define CATA_SRC_EXAMINE_ITEM_MENU_H
#include <functional>
#include "item_location.h"
class avatar;
class item;
namespace examine_item_menu
{
enum class menu_pos_t {
left,
right
};
bool run(
item_location loc,
const std::function<int()> &func_pos_x,
const std::function<int()> &func_width,
menu_pos_t menu_pos
);
/** Hint value used to decide action text color. */
enum class hint_rating : int {
/** Item should display as gray (action impossible) */
cant,
/** Item should display as red (action impossible at the moment) */
iffy,
/** Item should display as green (action possible at the moment) */
good
};
hint_rating rate_action_use( const avatar &you, const item &it );
hint_rating rate_action_read( const avatar &you, const item &it );
hint_rating rate_action_eat( const avatar &you, const item &it );
hint_rating rate_action_wear( const avatar &you, const item &it );
hint_rating rate_action_change_side( const avatar &you, const item &it );
hint_rating rate_action_takeoff( const avatar &you, const item &it );
hint_rating rate_action_unload( const avatar &you, const item &it );
hint_rating rate_action_reload( const avatar &you, const item &it );
hint_rating rate_action_mend( const avatar &you, const item &it );
// Needs non-const reference to validate crafting inventory
hint_rating rate_action_disassemble( avatar &you, const item &it );
} // namespace examine_item_menu
#endif // CATA_SRC_EXAMINE_ITEM_MENU_H