ScummVM API documentation
dart.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 TWINE_SCENE_DART_H
23 #define TWINE_SCENE_DART_H
24 
25 #include "twine/scene/actor.h"
26 #include "twine/twine.h"
27 
28 #define MAX_DARTS 3
29 #define BODY_3D_DART 61
30 // dart flags
31 #define DART_TAKEN (1 << 0)
32 
33 namespace TwinE {
34 
35 class Dart {
36 private:
37  TwinEEngine *_engine;
38 
39 public:
40  struct T_DART {
41  int32 PosX;
42  int32 PosY;
43  int32 PosZ;
44  int32 Alpha;
45  int32 Beta;
46  int32 Body;
47  int32 NumCube; // Number of the cube in which the dart is located
48  uint32 Flags;
49 
50  int32 XMin; // ZV of the darts
51  int32 YMin;
52  int32 ZMin;
53  int32 XMax;
54  int32 YMax;
55  int32 ZMax;
56  };
57  T_DART ListDart[MAX_DARTS];
58 
59  Dart(TwinEEngine *engine) : _engine(engine) {}
60 
61  void InitDarts();
62  int32 GetDart();
63  void TakeAllDarts();
64  void CheckDartCol(ActorStruct *ptrobj);
65 };
66 
67 } // namespace TwinE
68 
69 #endif
Definition: actor.h:143
Definition: twine.h:207
Definition: achievements_tables.h:27
Definition: dart.h:40
Definition: dart.h:35