22 #ifndef NUVIE_VIEWS_SPELL_VIEW_H 23 #define NUVIE_VIEWS_SPELL_VIEW_H 25 #include "ultima/nuvie/views/draggable_view.h" 26 #include "ultima/nuvie/core/obj.h" 50 uint16 caster_reagents[8];
55 sint16 cur_spells[16];
57 uint8 num_spells_per_page;
65 void set_spell_caster(
Actor *actor,
Obj *s_container,
bool eventMode);
66 sint16 get_selected_spell()
const {
67 if (spell_container) {
68 return spell_container->quality;
71 void Display(
bool full_redraw)
override;
75 GUI_status MouseDown(
int x,
int y, Shared::MouseButton button)
override;
77 GUI_status MouseUp(
int x,
int y, Shared::MouseButton button)
override {
80 GUI_status MouseMotion(
int x,
int y, uint8 state)
override {
83 GUI_status MouseEnter(uint8 state)
override {
86 GUI_status MouseLeave(uint8 state)
override {
89 GUI_status MouseClick(
int x,
int y, Shared::MouseButton button)
override {
92 GUI_status MouseDouble(
int x,
int y, Shared::MouseButton button)
override {
95 GUI_status MouseDelayed(
int x,
int y, Shared::MouseButton button)
override {
98 GUI_status MouseHeld(
int x,
int y, Shared::MouseButton button)
override {
101 GUI_status MouseWheel(sint32 x, sint32 y)
override;
105 void event_mode_select_spell();
107 void add_command_icons(
Screen *tmp_screen,
void *view_manager);
110 void update_buttons();
114 GUI_status move_up();
115 GUI_status move_down();
117 void set_prev_level();
118 void set_next_level();
120 virtual uint8 fill_cur_spell_list();
121 sint8 get_selected_index()
const;
123 void display_level_text();
124 void display_spell_list_text();
125 void display_spell_text(
Spell *spell, uint16 line_num, uint8 selected_spell);
126 void show_spell_description();
127 GUI_status cancel_spell();
128 uint16 get_available_spell_count(
const Spell *s)
const;
130 GUI_status callback(uint16 msg,
GUI_CallBack *caller,
void *data)
override;
Definition: configuration.h:61
Definition: atari-screen.h:60
Definition: tile_manager.h:145
Definition: detection.h:27
Definition: draggable_view.h:34
Definition: spell_view.h:40
Definition: obj_manager.h:75
Definition: gui_drag_manager.h:36
Definition: keyboard.h:294
Definition: gui_callback.h:31