diff options
author | Peter Kohaut | 2016-10-02 00:20:56 +0200 |
---|---|---|
committer | Peter Kohaut | 2016-10-02 00:20:56 +0200 |
commit | 2c15b164d736d1339998f9dcf7a4a230984cdff5 (patch) | |
tree | 587d77b4e6ebd6d17d146c2f422057c4856983d2 /engines/bladerunner/item.h | |
parent | fe2add5d5fb955724af9f0308d07c46c3110baad (diff) | |
download | scummvm-rg350-2c15b164d736d1339998f9dcf7a4a230984cdff5.tar.gz scummvm-rg350-2c15b164d736d1339998f9dcf7a4a230984cdff5.tar.bz2 scummvm-rg350-2c15b164d736d1339998f9dcf7a4a230984cdff5.zip |
BLADERUNNER: added support for rendering items in scenes
Diffstat (limited to 'engines/bladerunner/item.h')
-rw-r--r-- | engines/bladerunner/item.h | 68 |
1 files changed, 38 insertions, 30 deletions
diff --git a/engines/bladerunner/item.h b/engines/bladerunner/item.h index 5bb8e5481a..95500c3ceb 100644 --- a/engines/bladerunner/item.h +++ b/engines/bladerunner/item.h @@ -23,44 +23,52 @@ #ifndef BLADERUNNER_ITEM_H #define BLADERUNNER_ITEM_H -#include "bladerunner/bladerunner.h" #include "bladerunner/boundingbox.h" +#include "bladerunner/vector.h" -#include "common/array.h" #include "common/rect.h" namespace BladeRunner { - class Items; - class Item { - friend class Items; - private: - int _itemId; - int _setId; +class BladeRunnerEngine; +class Items; - BoundingBox _boundingBox; - Common::Rect _screenRectangle; - int _animationId; - Vector3 _position; - int _facing; - float _angle; - int _width; - int _height; - //int field_1C8; - int _target; - //float field_1D0; - int _targetable; - int _spinning; - int _angleChange; - float _cameraAngle; - int _obstacle; - //int field_1E8; - public: - Item(); - ~Item(); +class Item { + BladeRunnerEngine *_vm; - void getXYZ(float *x, float *y, float *z); - }; + friend class Items; + +private: + int _itemId; + int _setId; + + BoundingBox _boundingBox; + Common::Rect _screenRectangle; + int _animationId; + Vector3 _position; + int _facing; + float _angle; + int _width; + int _height; + int _screenX; + int _screenY; + float _depth; + bool _isTargetable; + bool _isSpinning; + int _facingChange; + bool _isVisible; + bool _isPoliceMazeEnemy; + +public: + Item(BladeRunnerEngine* vm); + ~Item(); + + void getXYZ(float *x, float *y, float *z); + bool isTargetable(); + void tick(bool special); + void setXYZ(Vector3 position); + void init(int itemId, int setId, int animationId, Vector3 position, int facing, int height, int width, bool isTargetable, bool isVisible, bool isPoliceMazeEnemy); +}; } |