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