HDB: Add cineWait() and cineWaitUntilDone()

This commit is contained in:
Nipun Garg authored and Eugene Sandulenko committed 2019-09-03 17:16:47 +02:00
1 parent 6910430770
commit 7e728aff4e
2 files changed
+16

No files matched your search

+14
View File
@@ -116,4 +116,18 @@ void AI::cineMoveCamera(int x, int y, int speed) {
_cine->push_back(cmd);
}
void AI::cineWait(int seconds) {
CineCommand *cmd = new CineCommand;
cmd->start = 0;
cmd->cmdType = C_WAIT;
cmd->delay = seconds;
_cine->push_back(cmd);
}
void AI::cineWaitUntilDone() {
CineCommand *cmd = new CineCommand;
cmd->cmdType = C_WAITUNTILDONE;
_cine->push_back(cmd);
}
} // End of Namespace
+2
View File
@@ -91,6 +91,8 @@ public:
void cineSetCamera(int x, int y);
void cineResetCamera();
void cineMoveCamera(int x, int y, int speed);
void cineWait(int seconds);
void cineWaitUntilDone();
Common::Array<CineCommand *> *_cine;