diff options
author | Einar Johan Trøan Sømåen | 2012-12-09 12:25:20 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-12-09 12:25:20 +0100 |
commit | 233ca0be4ad72b3b262f207ec0eef1d551b93184 (patch) | |
tree | 7809765c62667865aa3f988cf9d447fec4726307 /engines/wintermute/ad/ad_entity.h | |
parent | 32e63091d6842e2ca769733c5cfcc518b212270b (diff) | |
download | scummvm-rg350-233ca0be4ad72b3b262f207ec0eef1d551b93184.tar.gz scummvm-rg350-233ca0be4ad72b3b262f207ec0eef1d551b93184.tar.bz2 scummvm-rg350-233ca0be4ad72b3b262f207ec0eef1d551b93184.zip |
WINTERMUTE: Privatize members in AdEntity
Diffstat (limited to 'engines/wintermute/ad/ad_entity.h')
-rw-r--r-- | engines/wintermute/ad/ad_entity.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/engines/wintermute/ad/ad_entity.h b/engines/wintermute/ad/ad_entity.h index 415987e50a..94921aaa27 100644 --- a/engines/wintermute/ad/ad_entity.h +++ b/engines/wintermute/ad/ad_entity.h @@ -37,11 +37,7 @@ class AdEntity : public AdTalkHolder { public: VideoTheoraPlayer *_theora; bool setSprite(const char *filename); - int _walkToX; - int _walkToY; - TDirection _walkToDir; void setItem(const char *itemName); - char *_item; DECLARE_PERSISTENT(AdEntity, AdTalkHolder) void updatePosition(); virtual int getHeight(); @@ -53,14 +49,23 @@ public: virtual ~AdEntity(); bool loadFile(const char *filename); bool loadBuffer(byte *buffer, bool complete = true); - TEntityType _subtype; + + int32 getWalkToX() const; + int32 getWalkToY() const; + TDirection getWalkToDir() const; + const char* getItemName() const; // scripting interface virtual ScValue *scGetProperty(const Common::String &name); virtual bool scSetProperty(const char *name, ScValue *value); virtual bool scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack, const char *name); virtual const char *scToString(); - +private: + int32 _walkToX; + int32 _walkToY; + TDirection _walkToDir; + char *_item; + TEntityType _subtype; }; } // end of namespace Wintermute |