Skip to content

Commit

Permalink
WINTERMUTE: Make getters const in AdRegion
Browse files Browse the repository at this point in the history
  • Loading branch information
somaen committed Dec 9, 2012
1 parent 233ca0b commit ae4380b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions engines/wintermute/ad/ad_region.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions engines/wintermute/ad/ad_region.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class AdRegion : public BaseRegion {
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);
Expand Down

0 comments on commit ae4380b

Please sign in to comment.