diff options
author | Nipun Garg | 2019-06-20 17:48:00 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | e39f5c361f790c90a7d57d894a4e04568858000f (patch) | |
tree | 9277752d8d5ccc5d56c3823cee80f139e0953a1b /engines | |
parent | e473c1d48931a87f7b45db3b7908affea4529d33 (diff) | |
download | scummvm-rg350-e39f5c361f790c90a7d57d894a4e04568858000f.tar.gz scummvm-rg350-e39f5c361f790c90a7d57d894a4e04568858000f.tar.bz2 scummvm-rg350-e39f5c361f790c90a7d57d894a4e04568858000f.zip |
HDB: Add cineLockPlayer() and cineUnlockPlayer()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 12 | ||||
-rw-r--r-- | engines/hdb/ai.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index bc89afe0ac..44fe3a36e3 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -200,6 +200,18 @@ void AI::cineStart(bool abortable, const char *abortFunc) { _cameraLock = false; } +void AI::cineLockPlayer() { + CineCommand *cmd = new CineCommand; + cmd->cmdType = C_LOCKPLAYER; + _cine.push_back(cmd); +} + +void AI::cineUnlockPlayer() { + CineCommand *cmd = new CineCommand; + cmd->cmdType = C_UNLOCKPLAYER; + _cine.push_back(cmd); +} + void AI::cineSetCamera(int x, int y) { CineCommand *cmd = new CineCommand; cmd->x = x * kTileWidth; diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 1eaa41ca00..378318f3a8 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -526,6 +526,8 @@ public: // Cinematic Functions void processCines(); void cineStart(bool abortable, const char *abortFunc); + void cineLockPlayer(); + void cineUnlockPlayer(); void cineSetCamera(int x, int y); void cineResetCamera(); void cineMoveCamera(int x, int y, int speed); |