ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
actor.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 CRUISE_ACTOR_H
23 #define CRUISE_ACTOR_H
24 
25 namespace Cruise {
26 
27 enum animPhase {
28  ANIM_PHASE_WAIT = 0,
29  ANIM_PHASE_STATIC = 1,
30  ANIM_PHASE_MOVE = 2,
31  ANIM_PHASE_STATIC_END = 3,
32  ANIM_PHASE_END = 4
33 };
34 
35 enum ATP {
36  ATP_MOUSE = 0,
37  ATP_TRACK = 1
38 };
39 
40 struct actorStruct {
41  struct actorStruct *next;
42  struct actorStruct *prev;
43 
44  int16 idx;
45  int16 type;
46  int16 overlayNumber;
47  int16 x_dest;
48  int16 y_dest;
49  int16 x;
50  int16 y;
51  int16 startDirection;
52  int16 nextDirection;
53  int16 endDirection;
54  int16 stepX;
55  int16 stepY;
56  int16 pathId;
57  animPhase phase;
58  int16 counter;
59  int16 poly;
60  int16 flag;
61  int16 start;
62  int16 freeze;
63 };
64 
65 bool isAnimFinished(int overlayIdx, int idx, actorStruct *pStartEntry, int objType);
66 actorStruct *findActor(actorStruct *pStartEntry, int overlayIdx, int objIdx, int type);
67 void processAnimation();
68 void getPixel(int x, int y);
69 
70 } // End of namespace Cruise
71 
72 #endif
Definition: actor.h:25
Definition: actor.h:40