From c4e5cf96aca973297f463d1b327ffa35cf74b28c Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Mon, 18 Jul 2011 21:50:24 +0200 Subject: COMPOSER: Move graphics-related code into graphics.cpp. --- engines/composer/composer.h | 45 ++------------------------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) (limited to 'engines/composer/composer.h') diff --git a/engines/composer/composer.h b/engines/composer/composer.h index 6fa10d9c9a..012bef160f 100644 --- a/engines/composer/composer.h +++ b/engines/composer/composer.h @@ -57,50 +57,9 @@ enum GameType { }; class Archive; +struct Animation; class ComposerEngine; - -struct Sprite { - uint16 _id; - uint16 _animId; - uint16 _zorder; - Common::Point _pos; - Graphics::Surface _surface; - - bool contains(const Common::Point &pos) const; -}; - -enum { - kAnimOpEvent = 1, - kAnimOpPlayWave = 2, - kAnimOpPlayAnim = 3, - kAnimOpDrawSprite = 4 -}; - -struct AnimationEntry { - uint32 state; - uint16 op; - uint16 priority; - uint16 counter; - uint16 prevValue; -}; - -struct Animation { - Animation(Common::SeekableReadStream *stream, uint16 id, Common::Point basePos, uint32 eventParam); - ~Animation(); - - void seekToCurrPos(); - - uint16 _id; - Common::Point _basePos; - uint32 _eventParam; - - uint32 _state; - - Common::Array _entries; - - uint32 _offset; - Common::SeekableReadStream *_stream; -}; +struct Sprite; struct PipeResourceEntry { uint32 size; -- cgit v1.2.3