-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.h
35 lines (31 loc) · 1.28 KB
/
display.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
#ifndef DISPLAY_H
#define DISPLAY_H
#include <stdint.h>
#include "Cell_Pair.h"
#include "Player.h"
# ifdef __cplusplus
void log_message(std::string message, int row); //TODO: remove extern
void log_message(std::string message, int row, bool left);
void print_inventory(const std::vector<Item*>& items);
void display_equipment(const std::vector<Item*>& items);
void print_store(const std::vector<Item*>& items);
int generic_prompt(const std::vector<Item*>& items, const char* prompt, int offset, int max, void (*printer)(const std::vector<Item*>& items));
void item_printer(const std::vector<Item*>& items, int size, const char* format, int ascii_offset, const char* message);
extern "C" {
# endif
void ncurses_init();
Pair* getInputC(Pair* target);
Pair* look_mode(Pair *target, int* control_mode);
void log_message(const char* message);
void print_inventory(Item **items);
void display_equipment(Item ** items);
int item_info(const Item* item, const char* exit_prompt);
void display_purse(Item ** items);
int generic_prompt(Item** items, const char* prompt, int offset, int max, const char* error_msg_key, void (*printer)(Item ** items), bool (*criterion)(Item* item));
void display_stats();
void character_info(Character* character);
Pair& getInputS(Pair* target);
# ifdef __cplusplus
}
# endif
#endif