diff options
author | Einar Johan Trøan Sømåen | 2012-12-09 12:26:43 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-12-09 12:26:43 +0100 |
commit | ae4380b88f4ef2d26acca31a38c3722611b7585f (patch) | |
tree | 3d63b356c7480e7643a5ad574df43c6b6051461e /engines/wintermute | |
parent | 233ca0be4ad72b3b262f207ec0eef1d551b93184 (diff) | |
download | scummvm-rg350-ae4380b88f4ef2d26acca31a38c3722611b7585f.tar.gz scummvm-rg350-ae4380b88f4ef2d26acca31a38c3722611b7585f.tar.bz2 scummvm-rg350-ae4380b88f4ef2d26acca31a38c3722611b7585f.zip |
WINTERMUTE: Make getters const in AdRegion
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/ad/ad_region.cpp | 8 | ||||
-rw-r--r-- | engines/wintermute/ad/ad_region.h | 8 |
2 files changed, 8 insertions, 8 deletions
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); |