aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/motion.h
diff options
context:
space:
mode:
authorEugene Sandulenko2013-10-02 08:20:04 +0300
committerEugene Sandulenko2013-10-02 20:59:57 +0300
commit9e179fc42950dcf695546ef55175ec67e3205fd5 (patch)
treeedcaca187f15cb2065de5d287d301a8addc3ad97 /engines/fullpipe/motion.h
parent59e6341e354a39894f2dbc156ef5ab49d2dfcd9f (diff)
downloadscummvm-rg350-9e179fc42950dcf695546ef55175ec67e3205fd5.tar.gz
scummvm-rg350-9e179fc42950dcf695546ef55175ec67e3205fd5.tar.bz2
scummvm-rg350-9e179fc42950dcf695546ef55175ec67e3205fd5.zip
FULLPIPE: Implement MGM::addItem()
Diffstat (limited to 'engines/fullpipe/motion.h')
-rw-r--r--engines/fullpipe/motion.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h
index 23472297a9..09485507d7 100644
--- a/engines/fullpipe/motion.h
+++ b/engines/fullpipe/motion.h
@@ -100,15 +100,28 @@ class MctlCompound : public MotionController {
void initMovGraph2();
};
+struct MGMItem {
+ int16 objId;
+ int subItems;
+ int staticsListCount;
+ int movementListCount;
+ int statics;
+ int movements1;
+ int movements2;
+
+ MGMItem();
+};
+
+
class MGM : public CObject {
public:
- int _items;
- int _count;
+ Common::Array<MGMItem *> _items;
public:
- MGM() : _items(0), _count(0) {}
void clear();
void addItem(int objId);
+ void rebuildTables(int objId);
+ int getItemIndexById(int objId);
};
class MovGraphNode : public CObject {