diff options
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r-- | engines/sword25/gfx/animationresource.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/sword25/gfx/animationresource.h b/engines/sword25/gfx/animationresource.h index 2a1e3ce882..d6c2b1c50f 100644 --- a/engines/sword25/gfx/animationresource.h +++ b/engines/sword25/gfx/animationresource.h @@ -48,36 +48,36 @@ public: AnimationResource(const Common::String &filename); virtual ~AnimationResource(); - virtual const Frame &getFrame(uint index) const { + virtual const Frame &getFrame(uint index) const { assert(index < _frames.size()); return _frames[index]; } - virtual uint getFrameCount() const { + virtual uint getFrameCount() const { return _frames.size(); } - virtual void unlock() { + virtual void unlock() { release(); } - Animation::ANIMATION_TYPES getAnimationType() const { + Animation::ANIMATION_TYPES getAnimationType() const { return _animationType; } - int getFPS() const { + int getFPS() const { return _FPS; } - int getMillisPerFrame() const { + int getMillisPerFrame() const { return _millisPerFrame; } - bool isScalingAllowed() const { + bool isScalingAllowed() const { return _scalingAllowed; } - bool isAlphaAllowed() const { + bool isAlphaAllowed() const { return _alphaAllowed; } - bool isColorModulationAllowed() const { + bool isColorModulationAllowed() const { return _colorModulationAllowed; } - bool isValid() const { + bool isValid() const { return _valid; } |