ScummVM API documentation
actor_view.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef NUVIE_VIEWS_ACTOR_VIEW_H
23#define NUVIE_VIEWS_ACTOR_VIEW_H
24
25#include "ultima/nuvie/views/view.h"
26
27namespace Ultima {
28namespace Nuvie {
29
30class Configuration;
31class Screen;
32class Font;
33class TileManager;
34class ObjManager;
35class Portrait;
36class Party;
37
38class ActorView : public View {
39
40 Portrait *portrait;
41
42 unsigned char *portrait_data;
43 struct actcursor_pos_s {
44 uint8 x;
45 uint32 px, py;
46 } cursor_pos;
47 Tile *cursor_tile;
48 bool show_cursor;
49
50public:
51 ActorView(const Configuration *cfg);
52 ~ActorView() override;
53
54 bool init(Screen *tmp_screen, void *view_manager, uint16 x, uint16 y, Font *f, Party *p, TileManager *tm, ObjManager *om, Portrait *port);
55
56 bool set_party_member(uint8 party_member) override;
57
58 void Display(bool full_redraw) override;
59 void update() {
60 update_display = true;
61 }
62 void set_show_cursor(bool state);
63 void moveCursorToButton(sint8 button_num);
64
65protected:
66
67 void add_command_icons(Screen *tmp_screen, void *view_manager);
68 void display_name();
69 void display_actor_stats();
70 bool in_party;
71 GUI_status MouseDown(int x, int y, Events::MouseButton button) override;
72 GUI_status KeyDown(const Common::KeyState &key) override;
73 GUI_status MouseWheel(sint32 x, sint32 y) override;
74 void update_cursor();
75 void select_button();
76};
77
78} // End of namespace Nuvie
79} // End of namespace Ultima
80
81#endif
Definition: actor_view.h:38
Definition: configuration.h:60
Definition: font.h:42
Definition: obj_manager.h:74
Definition: party.h:92
Definition: portrait.h:40
Definition: screen.h:41
Definition: tile_manager.h:145
Definition: view.h:42
Definition: keyboard.h:294
Definition: atari-screen.h:58
Definition: tile_manager.h:113