diff options
Diffstat (limited to 'engines/startrek/room.cpp')
-rw-r--r-- | engines/startrek/room.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/startrek/room.cpp b/engines/startrek/room.cpp index 0ce807b198..0430d34d78 100644 --- a/engines/startrek/room.cpp +++ b/engines/startrek/room.cpp @@ -191,6 +191,11 @@ bool Room::actionHasCode(const Action &action) { return false; } +bool Room::actionHasCode(byte type, byte b1, byte b2, byte b3) { + const Action a = {type, b1, b2, b3}; + return actionHasCode(a); +} + bool Room::handleAction(const Action &action) { const RoomAction *roomActionPtr = _roomActionList; int n = _numRoomActions; @@ -207,6 +212,11 @@ bool Room::handleAction(const Action &action) { return false; } +bool Room::handleAction(byte type, byte b1, byte b2, byte b3) { + const Action a = {type, b1, b2, b3}; + return handleAction(a); +} + bool Room::handleActionWithBitmask(const Action &action) { const RoomAction *roomActionPtr = _roomActionList; int n = _numRoomActions; @@ -224,6 +234,11 @@ bool Room::handleActionWithBitmask(const Action &action) { return false; } +bool Room::handleActionWithBitmask(byte type, byte b1, byte b2, byte b3) { + Action a = {type, b1, b2, b3}; + return handleActionWithBitmask(a); +} + Common::Point Room::getBeamInPosition(int crewmanIndex) { int base = RDF_BEAM_IN_POSITIONS + crewmanIndex * 4; return Common::Point(readRdfWord(base), readRdfWord(base + 2)); |