diff options
author | Paul Gilbert | 2015-06-08 08:31:51 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-08 08:31:51 -0400 |
commit | f5a1b626b710c368e79ab27c13cf2be4ccdcb30f (patch) | |
tree | d9c49fe86f3c9d32430f9ca3da512cf9613ce63e /engines/sherlock/scalpel/scalpel_scene.h | |
parent | ae64cca8f01f4e56873ac6afa58610366ea8238a (diff) | |
download | scummvm-rg350-f5a1b626b710c368e79ab27c13cf2be4ccdcb30f.tar.gz scummvm-rg350-f5a1b626b710c368e79ab27c13cf2be4ccdcb30f.tar.bz2 scummvm-rg350-f5a1b626b710c368e79ab27c13cf2be4ccdcb30f.zip |
SHERLOCK: Move Scalpel map code to ScalpelMap
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_scene.h')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_scene.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel_scene.h b/engines/sherlock/scalpel/scalpel_scene.h index 88c7581f59..f79892e4e6 100644 --- a/engines/sherlock/scalpel/scalpel_scene.h +++ b/engines/sherlock/scalpel/scalpel_scene.h @@ -44,6 +44,17 @@ private: void doBgAnimCheckCursor(); protected: /** + * Loads the data associated for a given scene. The room resource file's format is: + * BGHEADER: Holds an index for the rest of the file + * STRUCTS: The objects for the scene + * IMAGES: The graphic information for the structures + * + * The _misc field of the structures contains the number of the graphic image + * that it should point to after loading; _misc is then set to 0. + */ + virtual bool loadScene(const Common::String &filename); + + /** * Checks all the background shapes. If a background shape is animating, * it will flag it as needing to be drawn. If a non-animating shape is * colliding with another shape, it will also flag it as needing drawing @@ -61,6 +72,16 @@ public: * Draw all objects and characters. */ virtual void doBgAnim(); + + /** + * Attempt to start a canimation sequence. It will load the requisite graphics, and + * then copy the canim object into the _canimShapes array to start the animation. + * + * @param cAnimNum The canim object within the current scene + * @param playRate Play rate. 0 is invalid; 1=normal speed, 2=1/2 speed, etc. + * A negative playRate can also be specified to play the animation in reverse + */ + virtual int startCAnim(int cAnimNum, int playRate); }; } // End of namespace Scalpel |