From ae4380b88f4ef2d26acca31a38c3722611b7585f Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Sun, 9 Dec 2012 12:26:43 +0100 Subject: WINTERMUTE: Make getters const in AdRegion --- engines/wintermute/ad/ad_region.cpp | 8 ++++---- engines/wintermute/ad/ad_region.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'engines/wintermute') diff --git a/engines/wintermute/ad/ad_region.cpp b/engines/wintermute/ad/ad_region.cpp index 39e0ddcf9a..daf0c89606 100644 --- a/engines/wintermute/ad/ad_region.cpp +++ b/engines/wintermute/ad/ad_region.cpp @@ -51,19 +51,19 @@ AdRegion::AdRegion(BaseGame *inGame) : BaseRegion(inGame) { AdRegion::~AdRegion() { } -uint32 AdRegion::getAlpha() { +uint32 AdRegion::getAlpha() const { return _alpha; } -float AdRegion::getZoom() { +float AdRegion::getZoom() const { return _zoom; } -bool AdRegion::isBlocked() { +bool AdRegion::isBlocked() const { return _blocked; } -bool AdRegion::hasDecoration() { +bool AdRegion::hasDecoration() const { return _decoration; } diff --git a/engines/wintermute/ad/ad_region.h b/engines/wintermute/ad/ad_region.h index 454e4bdebe..960dde5f15 100644 --- a/engines/wintermute/ad/ad_region.h +++ b/engines/wintermute/ad/ad_region.h @@ -43,10 +43,10 @@ public: bool loadBuffer(byte *buffer, bool complete = true); virtual bool saveAsText(BaseDynamicBuffer *buffer, int indent); - bool hasDecoration(); - bool isBlocked(); - uint32 getAlpha(); - float getZoom(); + bool hasDecoration() const; + bool isBlocked() const; + uint32 getAlpha() const; + float getZoom() const; // scripting interface virtual ScValue *scGetProperty(const Common::String &name); virtual bool scSetProperty(const char *name, ScValue *value); -- cgit v1.2.3