diff options
author | Peter Kohaut | 2018-01-14 12:12:06 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-01-28 10:57:16 +0100 |
commit | 1e5f9d3078f236f306b5d868bcd52f4e47f7b512 (patch) | |
tree | 0d402af27d75064d60e4674ab3bd4c9ad08759f1 /engines/bladerunner/waypoints.h | |
parent | 3a937f19c0a5e347c801c62d345475be082f9e41 (diff) | |
download | scummvm-rg350-1e5f9d3078f236f306b5d868bcd52f4e47f7b512.tar.gz scummvm-rg350-1e5f9d3078f236f306b5d868bcd52f4e47f7b512.tar.bz2 scummvm-rg350-1e5f9d3078f236f306b5d868bcd52f4e47f7b512.zip |
BLADERUNNER: Added basic KIA interface
Settings works
Help works
Clue database works
Fixed code for inserting objects into scene
Reorganization of few files
Unification & code formatting of few older files
Diffstat (limited to 'engines/bladerunner/waypoints.h')
-rw-r--r-- | engines/bladerunner/waypoints.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/engines/bladerunner/waypoints.h b/engines/bladerunner/waypoints.h index 8319c77f92..5a2a1fce6a 100644 --- a/engines/bladerunner/waypoints.h +++ b/engines/bladerunner/waypoints.h @@ -30,28 +30,30 @@ namespace BladeRunner { -struct Waypoint { - int _setId; - Vector3 _position; - bool _present; -}; - class Waypoints { +#if BLADERUNNER_DEBUG_RENDERING + friend class BladeRunnerEngine; +#endif + + struct Waypoint { + int setId; + Vector3 position; + bool present; + }; + BladeRunnerEngine *_vm; -public: - int _count; - Waypoint *_waypoints; + int _count; + Common::Array<Waypoint> _waypoints; public: Waypoints(BladeRunnerEngine *vm, int count); - ~Waypoints(); - void getXYZ(int waypointId, float *x, float *y, float *z); - float getX(int waypointId); - float getY(int waypointId); - float getZ(int waypointId); - int getSetId(int waypointId); + void getXYZ(int waypointId, float *x, float *y, float *z) const; + float getX(int waypointId) const; + float getY(int waypointId) const; + float getZ(int waypointId) const; + int getSetId(int waypointId) const; bool set(int waypointId, int setId, Vector3 position); bool reset(int waypointId); |