ScummVM API documentation
floaters.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 NGI_FLOATERS_H
23 #define NGI_FLOATERS_H
24 
25 #include "common/array.h"
26 #include "common/ptr.h"
27 
28 namespace NGI {
29 
30 class StaticANIObject;
31 class Scene;
32 class ReactPolygonal;
33 
34 struct FloaterArray1 {
35  int val1;
36  int val2;
37 
38  FloaterArray1() { val1 = 0; val2 = 0; }
39 };
40 
41 struct FloaterArray2 {
42  StaticANIObject *ani;
43  int val2;
44  int val3;
45  int val4;
46  int val5;
47  int val6;
48  int val7;
49  int val8;
50  double val9;
51  double val11;
52  int val13;
53  int countdown;
54  int val15;
55  int fflags;
56 
57  FloaterArray2() : ani(nullptr), val2(0), val3(0), val4(0), val5(0), val6(0), val7(0), val8(0),
58  val9(0.0), val11(0.0), val13(0), countdown(0), val15(0), fflags(0) {}
59 };
60 
61 class Floaters {
62 public:
66 
67  void init(GameVar *var);
68  void genFlies(Scene *sc, int x, int y, int priority, int flags);
69  void update();
70  void stopAll();
71 };
72 
73 } // End of namespace NGI
74 
75 #endif /* NGI_FLOATERS_H */
Definition: array.h:52
Definition: ptr.h:572
Definition: floaters.h:34
Definition: floaters.h:61
Definition: objects.h:76
Definition: statics.h:172
Definition: floaters.h:41
Definition: scene.h:32
Definition: anihandler.h:25