diff options
author | Paul Gilbert | 2014-08-16 17:24:22 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-16 17:24:22 -0400 |
commit | a42e52fb5baa2d9ed9e2d726cfdf0365acd15472 (patch) | |
tree | 80c691746ce5962163df1bb3d925ceae4115e8ea /engines/access/amazon/amazon_room.cpp | |
parent | 0b7078397417a3f54d33cebcd602034c8d0d1a1e (diff) | |
download | scummvm-rg350-a42e52fb5baa2d9ed9e2d726cfdf0365acd15472.tar.gz scummvm-rg350-a42e52fb5baa2d9ed9e2d726cfdf0365acd15472.tar.bz2 scummvm-rg350-a42e52fb5baa2d9ed9e2d726cfdf0365acd15472.zip |
ACCESS: Implemented code for clicking in room area
Diffstat (limited to 'engines/access/amazon/amazon_room.cpp')
-rw-r--r-- | engines/access/amazon/amazon_room.cpp | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/engines/access/amazon/amazon_room.cpp b/engines/access/amazon/amazon_room.cpp index 405889fe1a..bf3c2501bb 100644 --- a/engines/access/amazon/amazon_room.cpp +++ b/engines/access/amazon/amazon_room.cpp @@ -23,6 +23,7 @@ #include "common/scummsys.h" #include "access/access.h" #include "access/resources.h" +#include "access/amazon/amazon_game.h" #include "access/amazon/amazon_resources.h" #include "access/amazon/amazon_room.h" @@ -31,6 +32,7 @@ namespace Access { namespace Amazon { AmazonRoom::AmazonRoom(AccessEngine *vm): Room(vm) { + _game = (AmazonEngine *)vm; _antOutFlag = false; _icon = nullptr; } @@ -140,7 +142,28 @@ void AmazonRoom::roomMenu() { } void AmazonRoom::mainAreaClick() { - + if (_selectCommand == -1) { + if (_vm->_player->_roomNumber == 42 || _vm->_player->_roomNumber == 44 || + _vm->_player->_roomNumber == 31 || _vm->_player->_roomNumber == 29) { + switch (checkBoxes1(_vm->_events->_mousePos)) { + case 0: + _game->_jasMayaFlag = 0; + break; + case 1: + _game->_jasMayaFlag = 1; + break; + default: + break; + } + } + } else if (_vm->_events->_mousePos.x >= _vm->_screen->_windowXAdd && + _vm->_events->_mousePos.x <= _vm->_screen->_vWindowBytesWide && + _vm->_events->_mousePos.y >= _vm->_screen->_windowYAdd && + _vm->_events->_mousePos.y <= _vm->_screen->_vWindowLinesTall) { + if (checkBoxes1(_vm->_events->_mousePos) >= 0) { + checkBoxes3(); + } + } } } // End of namespace Amazon |