ScummVM API documentation
waypoints.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 BLADERUNNER_WAYPOINTS_H
23#define BLADERUNNER_WAYPOINTS_H
24
25#include "bladerunner/bladerunner.h"
26#include "bladerunner/vector.h"
27
28#include "common/array.h"
29
30namespace BladeRunner {
31
32class SaveFileReadStream;
33class SaveFileWriteStream;
34
35class Waypoints {
36 friend class Debugger;
37
38 struct Waypoint {
39 int setId;
40 Vector3 position;
41 bool present;
42 };
43
45
46 int _count;
47 Common::Array<Waypoint> _waypoints;
48
49public:
50 Waypoints(BladeRunnerEngine *vm, int count);
51
52 void getXYZ(int waypointId, float *x, float *y, float *z) const;
53 float getX(int waypointId) const;
54 float getY(int waypointId) const;
55 float getZ(int waypointId) const;
56 int getSetId(int waypointId) const;
57
58 bool set(int waypointId, int setId, Vector3 position);
59 bool reset(int waypointId);
60
61 void save(SaveFileWriteStream &f);
62 void load(SaveFileReadStream &f);
63};
64
65} // End of namespace BladeRunner
66
67#endif
Definition: bladerunner.h:113
Definition: debugger.h:56
Definition: savefile.h:113
Definition: savefile.h:88
Definition: vector.h:47
Definition: waypoints.h:35