From 9aeecf83a3fb4a943974149cde5d075a4b1d3ce5 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 24 Oct 2015 23:21:08 +0200 Subject: MADS: Implement getFrameWidth and getFrameHeight --- engines/mads/assets.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/mads/assets.h') diff --git a/engines/mads/assets.h b/engines/mads/assets.h index 8a0dc2cd44..aa7e188fba 100644 --- a/engines/mads/assets.h +++ b/engines/mads/assets.h @@ -99,8 +99,8 @@ public: int getCount() { return _frameCount; } int getFrameRate() const { return _frameRate; } int getPixelSpeed() const { return _pixelSpeed; } - int getFrameWidth(int index); - int getFrameHeight(int index); + int getFrameWidth(int index) { assert (index < _frameCount); return _frames[index]._bounds.width(); } + int getFrameHeight(int index) { assert (index < _frameCount); return _frames[index]._bounds.height(); } int getMaxFrameWidth() const { return _maxWidth; } int getMaxFrameHeight() const { return _maxHeight; } MSprite *getFrame(int frameIndex); -- cgit v1.2.3 From 7c4f6bae20f2848980130ea3db7f84478f78bf63 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 30 Oct 2015 11:05:07 +0100 Subject: MADS: Phantom: Implement scene 401 --- engines/mads/assets.h | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/mads/assets.h') diff --git a/engines/mads/assets.h b/engines/mads/assets.h index aa7e188fba..0aae534498 100644 --- a/engines/mads/assets.h +++ b/engines/mads/assets.h @@ -99,6 +99,7 @@ public: int getCount() { return _frameCount; } int getFrameRate() const { return _frameRate; } int getPixelSpeed() const { return _pixelSpeed; } + Common::Point getFramePos(int index) { assert (index < _frameCount); return Common::Point(_frames[index]._bounds.left, _frames[index]._bounds.top); } int getFrameWidth(int index) { assert (index < _frameCount); return _frames[index]._bounds.width(); } int getFrameHeight(int index) { assert (index < _frameCount); return _frames[index]._bounds.height(); } int getMaxFrameWidth() const { return _maxWidth; } -- cgit v1.2.3