diff options
Diffstat (limited to 'engines/bladerunner/item.cpp')
-rw-r--r-- | engines/bladerunner/item.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/bladerunner/item.cpp b/engines/bladerunner/item.cpp index af7b2ef4c2..7fca4d108c 100644 --- a/engines/bladerunner/item.cpp +++ b/engines/bladerunner/item.cpp @@ -73,6 +73,10 @@ bool Item::isTarget() const { return _isTarget; } +bool Item::isPoliceMazeEnemy() const { + return _isPoliceMazeEnemy; +} + bool Item::tick(Common::Rect *screenRect, bool special) { if (!_isVisible) { *screenRect = Common::Rect(); @@ -152,6 +156,15 @@ void Item::setup(int itemId, int setId, int animationId, Vector3 position, int f _screenRectangle.left = -1; } +void Item::spinInWorld() { + _isSpinning = true; + if (_vm->_rnd.getRandomNumberRng(1, 2) == 1) { + _facingChange = -340; + } else { + _facingChange = 340; + } +} + bool Item::isUnderMouse(int mouseX, int mouseY) const { return _isVisible && mouseX >= _screenRectangle.left - 10 |