ScummVM API documentation
cursor.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 HOLLYWOOD_MONSTERS_GAMEPLAY_CURSOR_H
23#define HOLLYWOOD_MONSTERS_GAMEPLAY_CURSOR_H
24
25#include "common/array.h"
26#include "common/types.h"
27
28namespace Common {
29struct Point;
30}
31
32namespace Graphics {
33struct WinCursorGroup;
34}
35
36namespace Hollywood {
37
39public:
42
43 bool load();
44 bool isLoaded() const { return _loaded; }
45
46 void enterInteractiveMode();
47 void leaveInteractiveMode();
48 void updatePosition(const Common::Point &point);
49 void advance(uint32 deltaMillis);
50
51 bool isInteractiveMode() const { return _visible; }
52 uint16 surfaceX() const { return _surfaceX; }
53 uint16 surfaceY() const { return _surfaceY; }
54
55private:
56 void clear();
57 bool loadFromExecutableResources();
58 bool loadFallbackCursorGroups();
59 void installCurrentFrame();
60
62 uint32 _frameTimer;
63 byte _animationFrameIndex;
64 uint16 _surfaceX;
65 uint16 _surfaceY;
66 bool _loaded;
67 bool _visible;
68};
69
70} // End of namespace Hollywood
71
72#endif // HOLLYWOOD_MONSTERS_GAMEPLAY_CURSOR_H
Definition: cursor.h:38
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: rect.h:144
Definition: display_client.h:58