aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/behavior.h
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-23 13:33:28 +0300
committerEugene Sandulenko2013-09-06 14:51:05 +0300
commitf54055d1eece57b4d939e1d0a96cbb379b955b39 (patch)
treed1bb41b37e42ed2c244574eafe29fc7200ef5135 /engines/fullpipe/behavior.h
parent22eedf56002b0d1b92d5bf51ff790cc7ac036151 (diff)
downloadscummvm-rg350-f54055d1eece57b4d939e1d0a96cbb379b955b39.tar.gz
scummvm-rg350-f54055d1eece57b4d939e1d0a96cbb379b955b39.tar.bz2
scummvm-rg350-f54055d1eece57b4d939e1d0a96cbb379b955b39.zip
FULLPIPE: Finished stubbing SceneSwitcher. Added Behavior Manager
Diffstat (limited to 'engines/fullpipe/behavior.h')
-rw-r--r--engines/fullpipe/behavior.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/engines/fullpipe/behavior.h b/engines/fullpipe/behavior.h
new file mode 100644
index 0000000000..5e3b09086d
--- /dev/null
+++ b/engines/fullpipe/behavior.h
@@ -0,0 +1,66 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef FULLPIPE_BEHAVIOR_H
+#define FULLPIPE_BEHAVIOR_H
+
+namespace Fullpipe {
+
+class BehaviorManager : public CObject {
+ CObArray _behaviors;
+ Scene *_scene;
+ bool _isActive;
+
+ public:
+ BehaviorManager();
+
+ void initBehavior(Scene *scene, CGameVar *var);
+};
+
+struct BehaviorEntryInfo {
+ int _messageQueue;
+ int _delay;
+ int _percent;
+ int _flags;
+};
+
+struct BehaviorEntry {
+ int _staticsId;
+ int _itemsCount;
+ int _flags;
+ BehaviorEntryInfo *_items;
+};
+
+struct BehaviorInfo {
+ StaticANIObject *_ani;
+ int _staticsId;
+ int _counter;
+ int _counterMax;
+ int _flags;
+ int _subIndex;
+ int _itemsCount;
+ BehaviorEntryInfo *_items;
+};
+
+} // End of namespace Fullpipe
+
+#endif /* FULLPIPE_BEHAVIOR_H */