diff options
author | Eugene Sandulenko | 2004-07-31 23:33:14 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-07-31 23:33:14 +0000 |
commit | 46a1c45d70bbfb6654a9c13e26949a4543d17e80 (patch) | |
tree | 69cc31d24d4fce500a388ce2ba992a4c51365ce7 /saga/animation.h | |
parent | f0d6fd8c5ac3bf144eef93f146e9c056321e11db (diff) | |
download | scummvm-rg350-46a1c45d70bbfb6654a9c13e26949a4543d17e80.tar.gz scummvm-rg350-46a1c45d70bbfb6654a9c13e26949a4543d17e80.tar.bz2 scummvm-rg350-46a1c45d70bbfb6654a9c13e26949a4543d17e80.zip |
Extended CVAR_RegisterFunc with callback object parameter.
Got rid of static structure in animation.cpp
svn-id: r14397
Diffstat (limited to 'saga/animation.h')
-rw-r--r-- | saga/animation.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/saga/animation.h b/saga/animation.h index 6befec524d..837c2f6a2b 100644 --- a/saga/animation.h +++ b/saga/animation.h @@ -86,13 +86,6 @@ struct R_ANIMATION { uint16 flags; }; -struct R_ANIMINFO { - int initialized; - uint16 anim_count; - uint16 anim_limit; - R_ANIMATION *anim_tbl[R_MAX_ANIMATIONS]; -}; - enum ANIM_FLAGS { ANIM_LOOP = 0x01, ANIM_ENDSCENE = 0x80 // When animation ends, dispatch scene end event @@ -110,12 +103,21 @@ public: int setFlag(uint16 anim_id, uint16 flag); int setFrameTime(uint16 anim_id, int time); int reset(void); + void animInfo(int argc, char *argv[]); + private: int getNumFrames(const byte *anim_resource, size_t anim_resource_len, uint16 *n_frames); int ITE_DecodeFrame(const byte *anim_resource, size_t anim_resource_len, size_t frame_offset, byte *buf, size_t buf_len); int IHNM_DecodeFrame(byte *decode_buf, size_t decode_buf_len, const byte *thisf_p, size_t thisf_len, const byte **nextf_p, size_t *nextf_len); int getFrameOffset(const byte *anim_resource, size_t anim_resource_len, uint16 find_frame, size_t *frame_offset); + + bool _initialized; + + uint16 _anim_count; + uint16 _anim_limit; + R_ANIMATION *_anim_tbl[R_MAX_ANIMATIONS]; + }; } // End of namespace Saga |