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
33namespace TwinE {
34
35class Dart {
36private:
37 TwinEEngine *_engine;
38
39public:
40 struct T_DART {
41 int32 PosX = 0;
42 int32 PosY = 0;
43 int32 PosZ = 0;
44 int32 Alpha = 0;
45 int32 Beta = 0;
46 int32 Body = 0;
47 int32 NumCube = 0; // Number of the cube in which the dart is located
48 uint32 Flags = 0u;
49
50 int32 XMin = 0; // ZV of the darts
51 int32 YMin = 0;
52 int32 ZMin = 0;
53 int32 XMax = 0;
54 int32 YMax = 0;
55 int32 ZMax = 0;
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:137
Definition: dart.h:35
Definition: twine.h:207
Definition: dart.h:40