diff options
author | Eugene Sandulenko | 2013-12-16 11:18:33 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-16 11:18:33 +0200 |
commit | fe8d2df77c63bb23b070dda89c97f7a491e54d49 (patch) | |
tree | b8336d000b72c2f4c8e13e9a1b32c2bfedd76e67 /engines/fullpipe | |
parent | 0911865af6d1eb3a883c840b1e5823833fd50a81 (diff) | |
download | scummvm-rg350-fe8d2df77c63bb23b070dda89c97f7a491e54d49.tar.gz scummvm-rg350-fe8d2df77c63bb23b070dda89c97f7a491e54d49.tar.bz2 scummvm-rg350-fe8d2df77c63bb23b070dda89c97f7a491e54d49.zip |
FULLPIPE: Implement FullpipeEngine::setArcadeOverlay()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/fullpipe.cpp | 7 | ||||
-rw-r--r-- | engines/fullpipe/fullpipe.h | 8 | ||||
-rw-r--r-- | engines/fullpipe/input.cpp | 15 |
3 files changed, 29 insertions, 1 deletions
diff --git a/engines/fullpipe/fullpipe.cpp b/engines/fullpipe/fullpipe.cpp index 970af423ae..674f67fe55 100644 --- a/engines/fullpipe/fullpipe.cpp +++ b/engines/fullpipe/fullpipe.cpp @@ -148,6 +148,13 @@ FullpipeEngine::FullpipeEngine(OSystem *syst, const ADGameDescription *gameDesc) _objectAtCursor = 0; _objectIdAtCursor = 0; + _arcadeOverlay = 0; + _arcadeOverlayHelper = 0; + _arcadeOverlayX = 0; + _arcadeOverlayY = 0; + _arcadeOverlayMidX = 0; + _arcadeOverlayMidY = 0; + _isSaveAllowed = true; g_fullpipe = this; diff --git a/engines/fullpipe/fullpipe.h b/engines/fullpipe/fullpipe.h index d5001b2449..b326c45004 100644 --- a/engines/fullpipe/fullpipe.h +++ b/engines/fullpipe/fullpipe.h @@ -63,6 +63,7 @@ struct MessageHandler; struct MovTable; class MGM; class NGIArchive; +class PictureObject; class Scene; class SoundList; class StaticANIObject; @@ -243,6 +244,13 @@ public: void openHelp(); void openMainMenu(); + PictureObject *_arcadeOverlay; + PictureObject *_arcadeOverlayHelper; + int _arcadeOverlayX; + int _arcadeOverlayY; + int _arcadeOverlayMidX; + int _arcadeOverlayMidY; + void initArcadeKeys(const char *varname); void processArcade(ExCommand *ex); void winArcade(); diff --git a/engines/fullpipe/input.cpp b/engines/fullpipe/input.cpp index d551019de4..d5431dd473 100644 --- a/engines/fullpipe/input.cpp +++ b/engines/fullpipe/input.cpp @@ -295,7 +295,20 @@ void FullpipeEngine::initArcadeKeys(const char *varname) { } void FullpipeEngine::setArcadeOverlay(int picId) { - warning("STUB: setArcadeOverlay()"); + Common::Point point; + Common::Point point2; + + _arcadeOverlayX = 800; + _arcadeOverlayY = 545; + + _arcadeOverlayHelper = accessScene(SC_INV)->getPictureObjectById(PIC_CSR_HELPERBGR, 0); + _arcadeOverlay = accessScene(SC_INV)->getPictureObjectById(picId, 0); + + _arcadeOverlay->getDimensions(&point); + _arcadeOverlayHelper->getDimensions(&point2); + + _arcadeOverlayMidX = (point2.x - point.x) / 2; + _arcadeOverlayMidY = abs(point2.y - point.y) / 2; } |