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/set.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/set.h')
-rw-r--r-- | engines/bladerunner/set.h | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/engines/bladerunner/set.h b/engines/bladerunner/set.h index d3540c5c0f..17d06263b9 100644 --- a/engines/bladerunner/set.h +++ b/engines/bladerunner/set.h @@ -36,27 +36,26 @@ class VQADecoder; class SetEffects; class SceneObjects; -struct Object { - char _name[20]; - BoundingBox _bbox; - uint8 _isObstacle; - uint8 _isClickable; - uint8 _isHotMouse; - uint8 _isTarget; - uint8 _unknown1; -}; - -struct Walkbox { - char _name[20]; - float _altitude; - int _vertexCount; - Vector3 _vertices[8]; -}; - class Set { -#if _DEBUG +#if BLADERUNNER_DEBUG_RENDERING friend class BladeRunnerEngine; #endif + struct Object { + char name[20]; + BoundingBox bbox; + uint8 isObstacle; + uint8 isClickable; + uint8 isHotMouse; + uint8 isTarget; + uint8 unknown1; + }; + + struct Walkbox { + char name[20]; + float altitude; + int vertexCount; + Vector3 vertices[8]; + }; BladeRunnerEngine *_vm; @@ -68,6 +67,7 @@ class Set { int _walkboxStepSound[85]; int _footstepSoundOverride; // float _unknown[10]; + public: SetEffects *_effects; @@ -87,19 +87,21 @@ public: bool objectSetHotMouse(int objectId) const; bool objectGetBoundingBox(int objectId, BoundingBox *boundingBox) const; - void objectSetIsClickable(int objectId, bool isClickable) const; - void objectSetIsObstacle(int objectId, bool isObstacle) const; - void objectSetIsTarget(int objectId, bool isTarget) const; + void objectSetIsClickable(int objectId, bool isClickable); + void objectSetIsObstacle(int objectId, bool isObstacle); + void objectSetIsTarget(int objectId, bool isTarget); const char *objectGetName(int objectId) const; void setWalkboxStepSound(int walkboxId, int soundId); void setFoodstepSoundOverride(int soundId); void resetFoodstepSoundOverride(); - int getWalkboxSoundWalkLeft(int walkboxId); - int getWalkboxSoundWalkRight(int walkboxId); - int getWalkboxSoundRunLeft(int walkboxId); - int getWalkboxSoundRunRight(int walkboxId); - + int getWalkboxSoundWalkLeft(int walkboxId) const; + int getWalkboxSoundWalkRight(int walkboxId) const; + int getWalkboxSoundRunLeft(int walkboxId) const; + int getWalkboxSoundRunRight(int walkboxId) const; + +private: + static bool isXZInWalkbox(float x, float z, const Walkbox &walkbox); }; } // End of namespace BladeRunner |