Angband
ui-target.h
Go to the documentation of this file.
1 
20 #ifndef UI_TARGET_H
21 #define UI_TARGET_H
22 
23 #include "ui-event.h"
24 
28 #define KEY_GRID_Y(K) \
29  ((int) (((K.mouse.y - ROW_MAP) / tile_height) + Term->offset_y))
30 
34 #define KEY_GRID_X(K) \
35  ((int) (((K.mouse.x - COL_MAP) / tile_width) + Term->offset_x))
36 
37 
42 #define HELP_HEIGHT 3
43 
47 #define TARGET_OUT_VAL_SIZE 256
48 
49 int target_dir(struct keypress ch);
50 int target_dir_allow(struct keypress ch, bool allow_5);
51 void target_display_help(bool monster, bool free);
52 void textui_target(void);
53 void textui_target_closest(void);
54 bool target_set_interactive(int mode, int x, int y);
55 
56 #endif /* UI_TARGET_H */