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#ifndef DRAGONS_CURSOR_H
22#define DRAGONS_CURSOR_H
23
24#include "dragons/scriptopcodes.h"
25
26namespace Dragons {
27
28class Actor;
29class ActorManager;
30class DragonsEngine;
31class DragonINIResource;
32
33class Cursor {
34public:
35 int16 _data_800728b0_cursor_seqID;
36 uint16 _iniUnderCursor;
37 int32 _sequenceID;
38 int16 _performActionTargetINI;
39 int16 _x;
40 int16 _y;
41 int16 _objectInHandSequenceID;
42 int16 _cursorActivationSeqOffset;
43 uint16 _iniItemInHand;
44 uint16 _handPointerSequenceID;
45
46private:
47 DragonsEngine *_vm;
48 Actor *_actor;
49
50public:
52 void init(ActorManager *actorManager, DragonINIResource *dragonINIResource);
53 void update();
54 void updateSequenceID(int16 sequenceID);
55 void updateVisibility();
56 void updatePosition(int16 x, int16 y);
57 void updateActorPosition(int16 x, int16 y);
58 int16 updateINIUnderCursor();
59 int16 executeScript(ScriptOpCall &scriptOpCall, uint16 unkFlag);
60 void selectPreviousCursor();
61 void selectNextCursor();
62 void setActorFlag400();
63 void clearActorFlag400();
64 byte *getPalette();
65
66private:
67 int16 updateIniFromScene();
68};
69
70} // End of namespace Dragons
71
72#endif //DRAGONS_CURSOR_H
Definition: actor.h:86
Definition: actor.h:61
Definition: cursor.h:33
Definition: dragonini.h:63
Definition: dragons.h:166
Definition: scriptopcodes.h:34