aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/eventman.h
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-17 14:29:05 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit98c79f89bf2c5860f39a6ec7ca88a01a2f987323 (patch)
tree9f994595202a3fb9d68b6e6bfa5fc1481cb6b8fb /engines/dm/eventman.h
parentbcfe176df557b78adf9181a9dfea229ff3fadfe1 (diff)
downloadscummvm-rg350-98c79f89bf2c5860f39a6ec7ca88a01a2f987323.tar.gz
scummvm-rg350-98c79f89bf2c5860f39a6ec7ca88a01a2f987323.tar.bz2
scummvm-rg350-98c79f89bf2c5860f39a6ec7ca88a01a2f987323.zip
DM: Add mouse input processing and display for movement arrows
Diffstat (limited to 'engines/dm/eventman.h')
-rw-r--r--engines/dm/eventman.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/dm/eventman.h b/engines/dm/eventman.h
index c52cf6d95c..ed6bba20b1 100644
--- a/engines/dm/eventman.h
+++ b/engines/dm/eventman.h
@@ -131,7 +131,7 @@ public:
Common::Point pos;
CommandType type;
- Command(Common::Point position, CommandType commandType): pos(position), type(type) {}
+ Command(Common::Point position, CommandType commandType): pos(position), type(commandType) {}
}; // @ COMMAND
@@ -189,8 +189,11 @@ class EventManager {
Common::Point _pendingClickPos; // @ G0437_i_PendingClickX, G0438_i_PendingClickY
MouseButton _pendingClickButton; // @ G0439_i_PendingClickButtonsStatus
- bool _isCommandQueueLocked;
+ bool _isCommandQueueLocked; // this doesn't seem to be used anywhere at all
Common::Queue<Command> _commandQueue;
+
+ void commandTurnParty(CommandType cmdType); // @ F0365_COMMAND_ProcessTypes1To2_TurnParty
+ void commandMoveParty(CommandType cmdType); // @ F0366_COMMAND_ProcessTypes3To6_MoveParty
public:
MouseInput* _primaryMouseInput;// @ G0441_ps_PrimaryMouseInput
MouseInput* _secondaryMouseInput;// @ G0442_ps_SecondaryMouseInput
@@ -200,10 +203,11 @@ public:
void showMouse(bool visibility);
void setMousePos(Common::Point pos);
- void processInput();
+ void processInput(); // acknowledges mouse and keyboard input
void processPendingClick(); // @ F0360_COMMAND_ProcessPendingClick
void processClick(Common::Point mousePos, MouseButton button); // @ F0359_COMMAND_ProcessClick_CPSC
CommandType getCommandTypeFromMouseInput(MouseInput *input, Common::Point mousePos, MouseButton button); // @ F0358_COMMAND_GetCommandFromMouseInput_CPSC
+ void processCommandQueue(); // @ F0380_COMMAND_ProcessQueue_CPSC
};
}