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/mouse.cpp | |
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/mouse.cpp')
-rw-r--r-- | engines/bladerunner/mouse.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/bladerunner/mouse.cpp b/engines/bladerunner/mouse.cpp index 8293cbc59c..35059f4e00 100644 --- a/engines/bladerunner/mouse.cpp +++ b/engines/bladerunner/mouse.cpp @@ -35,7 +35,8 @@ namespace BladeRunner { -Mouse::Mouse(BladeRunnerEngine *vm) : _vm(vm) { +Mouse::Mouse(BladeRunnerEngine *vm) { + _vm = vm; _cursor = 0; _frame = 3; _hotspotX = 0; @@ -149,7 +150,7 @@ void Mouse::setCursor(int cursor) { } } -void Mouse::getXY(int *x, int *y) { +void Mouse::getXY(int *x, int *y) const { *x = _x; *y = _y; } @@ -164,7 +165,7 @@ void Mouse::enable() { } } -bool Mouse::isDisabled() { +bool Mouse::isDisabled() const { return _disabledCounter > 0; } @@ -311,7 +312,7 @@ void Mouse::tick(int x, int y) { } // TEST: RC01 after intro: [290, 216] -> [-204.589249 51.450668 7.659241] -Vector3 Mouse::getXYZ(int x, int y) { +Vector3 Mouse::getXYZ(int x, int y) const { if (_vm->_scene->getSetId() == -1) return Vector3(); |