diff options
author | Alyssa Milburn | 2011-11-26 23:50:45 +0100 |
---|---|---|
committer | Alyssa Milburn | 2011-11-26 23:50:45 +0100 |
commit | 9f56876165d10dbfc86d8f232345ea0a766966bf (patch) | |
tree | 66ef7bdb1f98a58709e3d54b0e978096a86fd50d /engines/mohawk/livingbooks_code.h | |
parent | dc02f6712796d63a34bbbd4bfbab309a11bdb879 (diff) | |
download | scummvm-rg350-9f56876165d10dbfc86d8f232345ea0a766966bf.tar.gz scummvm-rg350-9f56876165d10dbfc86d8f232345ea0a766966bf.tar.bz2 scummvm-rg350-9f56876165d10dbfc86d8f232345ea0a766966bf.zip |
MOHAWK: Add the start of support for LBXDataFile.
Diffstat (limited to 'engines/mohawk/livingbooks_code.h')
-rw-r--r-- | engines/mohawk/livingbooks_code.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks_code.h b/engines/mohawk/livingbooks_code.h index 552a5f4cc0..ce5910559c 100644 --- a/engines/mohawk/livingbooks_code.h +++ b/engines/mohawk/livingbooks_code.h @@ -32,6 +32,7 @@ namespace Mohawk { class MohawkEngine_LivingBooks; class LBItem; +class LBXObject; struct LBList; enum LBValueType { @@ -41,6 +42,7 @@ enum LBValueType { kLBValuePoint, kLBValueRect, kLBValueItemPtr, + kLBValueLBX, kLBValueList }; @@ -69,6 +71,10 @@ struct LBValue { type = kLBValueItemPtr; item = itm; } + LBValue(Common::SharedPtr<LBXObject> l) { + type = kLBValueLBX; + lbx = l; + } LBValue(Common::SharedPtr<LBList> l) { type = kLBValueList; list = l; @@ -94,6 +100,9 @@ struct LBValue { case kLBValueItemPtr: item = val.item; break; + case kLBValueLBX: + lbx = val.lbx; + break; case kLBValueList: list = val.list; break; @@ -107,6 +116,7 @@ struct LBValue { Common::Point point; Common::Rect rect; LBItem *item; + Common::SharedPtr<LBXObject> lbx; Common::SharedPtr<LBList> list; bool operator==(const LBValue &x) const; @@ -255,6 +265,8 @@ public: void cmdSetPlayParams(const Common::Array<LBValue> ¶ms); void cmdSetKeyEvent(const Common::Array<LBValue> ¶ms); void cmdSetHitTest(const Common::Array<LBValue> ¶ms); + void cmdLBXCreate(const Common::Array<LBValue> ¶ms); + void cmdLBXFunc(const Common::Array<LBValue> ¶ms); void cmdKey(const Common::Array<LBValue> ¶ms); void itemIsPlaying(const Common::Array<LBValue> ¶ms); |