diff options
author | Kamil Zbróg | 2013-11-14 14:44:24 +0000 |
---|---|---|
committer | Kamil Zbróg | 2013-11-14 14:44:24 +0000 |
commit | 7b1fed7331df8e4f4071445626d1ca67a5e7ff7b (patch) | |
tree | 80f943e39bbcf07a44dca02e5eab0e910742f6d9 /engines/prince/mob.h | |
parent | 8cffaaaff303773d1da48c9756e616937f2eb5d0 (diff) | |
download | scummvm-rg350-7b1fed7331df8e4f4071445626d1ca67a5e7ff7b.tar.gz scummvm-rg350-7b1fed7331df8e4f4071445626d1ca67a5e7ff7b.tar.bz2 scummvm-rg350-7b1fed7331df8e4f4071445626d1ca67a5e7ff7b.zip |
PRINCE: get/set mob data added
Diffstat (limited to 'engines/prince/mob.h')
-rw-r--r-- | engines/prince/mob.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/engines/prince/mob.h b/engines/prince/mob.h index 7db059e485..36630eb6eb 100644 --- a/engines/prince/mob.h +++ b/engines/prince/mob.h @@ -27,6 +27,8 @@ #include "common/rect.h" #include "common/str.h" +#include "prince/common.h" + namespace Common { class SeekableReadStream; } @@ -40,9 +42,39 @@ public: bool loadFromStream(Common::SeekableReadStream &stream); + // 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 + }; + + void setData(AttrId dataId, uint16 value); + uint16 getData(AttrId dataId); + bool _visible; uint16 _type; + uint16 _mask; Common::Rect _rect; + + Common::Point _examPosition; + Direction _examDirection; + + Common::Point _usePosition; + Direction _useDirection; + Common::String _name; Common::String _examText; }; |