diff options
author | lukaslw | 2014-10-06 23:06:25 +0200 |
---|---|---|
committer | lukaslw | 2014-10-06 23:06:25 +0200 |
commit | 6d228fe3f9e4e4717b04dd3211513be37ce9468e (patch) | |
tree | 56d8b7d256be7ea3ff5acec262c0cc07935066b1 /engines | |
parent | 4ef22e3a196705097cb4ffd4992d1666e4519537 (diff) | |
download | scummvm-rg350-6d228fe3f9e4e4717b04dd3211513be37ce9468e.tar.gz scummvm-rg350-6d228fe3f9e4e4717b04dd3211513be37ce9468e.tar.bz2 scummvm-rg350-6d228fe3f9e4e4717b04dd3211513be37ce9468e.zip |
PRINCE: Mob::AttrId - enum names update
Diffstat (limited to 'engines')
-rw-r--r-- | engines/prince/mob.cpp | 14 | ||||
-rw-r--r-- | engines/prince/mob.h | 19 |
2 files changed, 11 insertions, 22 deletions
diff --git a/engines/prince/mob.cpp b/engines/prince/mob.cpp index 9f3ff5d7b8..de825ef8b2 100644 --- a/engines/prince/mob.cpp +++ b/engines/prince/mob.cpp @@ -75,13 +75,13 @@ bool Mob::loadFromStream(Common::SeekableReadStream &stream) { void Mob::setData(AttrId dataId, uint16 value) { switch (dataId) { - case ExamDir: + case kMobExamDir: _examDirection = (Direction)value; break; - case ExamX: + case kMobExamX: _examPosition.x = value; break; - case ExamY: + case kMobExamY: _examPosition.y = value; break; default: @@ -91,13 +91,13 @@ void Mob::setData(AttrId dataId, uint16 value) { uint16 Mob::getData(AttrId dataId) { switch (dataId) { - case Visible: + case kMobVisible: return _visible; - case ExamDir: + case kMobExamDir: return _examDirection; - case ExamX: + case kMobExamX: return _examPosition.x; - case ExamY: + case kMobExamY: return _examPosition.y; default: assert(false); diff --git a/engines/prince/mob.h b/engines/prince/mob.h index aaa51988b2..ecf0eb4c3a 100644 --- a/engines/prince/mob.h +++ b/engines/prince/mob.h @@ -41,21 +41,10 @@ public: // Used instead of offset in setData and getData enum AttrId { - Visible = 0, - Type = 2, - X1 = 4, - Y1 = 6, - X2 = 8, - Y2 = 10, - Mask = 12, - ExamX = 14, - ExamY = 16, - ExamDir = 18, - UseX = 20, - UseY = 21, - UseDir = 22, - Name = 24, - ExamText = 28 + kMobVisible = 0, + kMobExamX = 14, + kMobExamY = 16, + kMobExamDir = 18, }; void setData(AttrId dataId, uint16 value); |