aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks_code.h
diff options
context:
space:
mode:
authorAlyssa Milburn2011-11-26 23:50:45 +0100
committerAlyssa Milburn2011-11-26 23:50:45 +0100
commit9f56876165d10dbfc86d8f232345ea0a766966bf (patch)
tree66ef7bdb1f98a58709e3d54b0e978096a86fd50d /engines/mohawk/livingbooks_code.h
parentdc02f6712796d63a34bbbd4bfbab309a11bdb879 (diff)
downloadscummvm-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.h12
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> &params);
void cmdSetKeyEvent(const Common::Array<LBValue> &params);
void cmdSetHitTest(const Common::Array<LBValue> &params);
+ void cmdLBXCreate(const Common::Array<LBValue> &params);
+ void cmdLBXFunc(const Common::Array<LBValue> &params);
void cmdKey(const Common::Array<LBValue> &params);
void itemIsPlaying(const Common::Array<LBValue> &params);