diff options
Diffstat (limited to 'engines/mads/game.h')
-rw-r--r-- | engines/mads/game.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/engines/mads/game.h b/engines/mads/game.h index 95b54b0d1a..0579d94b32 100644 --- a/engines/mads/game.h +++ b/engines/mads/game.h @@ -44,6 +44,11 @@ enum KernelMode { KERNEL_ROOM_PRELOAD = 3, KERNEL_ROOM_INIT = 4, KERNEL_ACTIVE_CODE = 5 }; +enum SyncType { + SYNC_SEQ = 1, SYNC_PLAYER = 2, SYNC_ANIM = 3, SYNC_CLOCK = 4 +}; + + #define MADS_SAVEGAME_VERSION 1 struct MADSSavegameHeader { @@ -142,6 +147,7 @@ public: int _winStatus; int _widepipeCtr; int _loadGameSlot; + int _panningSpeed; public: virtual ~Game(); @@ -235,6 +241,32 @@ public: * Creates a temporary thumbnail for use in saving games */ void createThumbnail(); + + void syncTimers(SyncType slaveType, int slaveId, SyncType masterType, int masterId); + + typedef struct { + bool _panAllowedFl; + bool _activeFl; + bool _currentFrameFl; + bool _manualFl; + + int _speed; + int _rate; + int _target; + int _distOffCenter; + int _startTolerance; + int _endTolerance; + int _direction; + uint32 _timer; + } Camera; + Camera _camX, _camY; + + void camPanTo(Camera *camera, int target); + void camInitDefault(); + void camSetSpeed(); + void camUpdate(); + bool camPan(Camera *camera, int16 *picture_view, int16 *player_loc, int display_size, int picture_size); + }; } // End of namespace MADS |