aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/video.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2010-09-01 13:28:12 +0000
committerMatthew Hoops2010-09-01 13:28:12 +0000
commit649e275ca622b0e6b84181cb23dfc714270346d3 (patch)
treefc6a91f6bd3e430b0b802b802b0687540385645b /engines/mohawk/video.cpp
parent43bbfa5ca8d384f601ef91f69d7d6bd6f3bba5cd (diff)
downloadscummvm-rg350-649e275ca622b0e6b84181cb23dfc714270346d3.tar.gz
scummvm-rg350-649e275ca622b0e6b84181cb23dfc714270346d3.tar.bz2
scummvm-rg350-649e275ca622b0e6b84181cb23dfc714270346d3.zip
MOHAWK: Implement xbookclick
It is now possible to trap Gehn in the trap book. Side note: Riven is now completable from the beginning provided you know the D'ni number system already (and the marble puzzle is just hacked to always work). svn-id: r52482
Diffstat (limited to 'engines/mohawk/video.cpp')
-rw-r--r--engines/mohawk/video.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp
index 17456b8ec3..a266ebf518 100644
--- a/engines/mohawk/video.cpp
+++ b/engines/mohawk/video.cpp
@@ -412,4 +412,14 @@ uint32 VideoManager::getFrameCount(const VideoHandle &handle) {
return _videoStreams[handle]->getFrameCount();
}
+uint32 VideoManager::getElapsedTime(const VideoHandle &handle) {
+ assert(handle != NULL_VID_HANDLE);
+ return _videoStreams[handle]->getElapsedTime();
+}
+
+bool VideoManager::endOfVideo(const VideoHandle &handle) {
+ assert(handle != NULL_VID_HANDLE);
+ return _videoStreams[handle]->endOfVideo();
+}
+
} // End of namespace Mohawk