aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/motion.cpp
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.cpp
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.cpp')
-rw-r--r--engines/fullpipe/motion.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index 283777041a..607cc3a390 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -482,8 +482,34 @@ void MGM::clear() {
warning("STUB: MGM:clear()");
}
+MGMItem::MGMItem() {
+ objId = 0;
+ subItems = 0;
+ staticsListCount = 0;
+ movementListCount = 0;
+ statics = 0;
+ movements1 = 0;
+ movements2 = 0;
+}
+
void MGM::addItem(int objId) {
- warning("STUB: MGM:addItem(%d)", objId);
+ if (getItemIndexById(objId) == -1) {
+ MGMItem *item = new MGMItem();
+
+ item->objId = objId;
+ _items.push_back(item);
+ }
+ rebuildTables(objId);
+}
+
+void MGM::rebuildTables(int objId) {
+ warning("STUB: MGM:rebuildTables()");
+}
+
+int MGM::getItemIndexById(int objId) {
+ warning("STUB: MGM:getItemIndexById()");
+
+ return -1;
}
MovGraphLink::MovGraphLink() {