diff options
author | Eugene Sandulenko | 2013-07-21 23:22:04 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2013-09-06 14:51:04 +0300 |
commit | 82b596a31e42bf21cec2a31a3a68c07c1936355d (patch) | |
tree | 125c600d3172edf03ac65530d17cc560fba35d5c /engines/fullpipe/motion.h | |
parent | c4499bb4b290484cd1af35f2c354e0b2897e4a62 (diff) | |
download | scummvm-rg350-82b596a31e42bf21cec2a31a3a68c07c1936355d.tar.gz scummvm-rg350-82b596a31e42bf21cec2a31a3a68c07c1936355d.tar.bz2 scummvm-rg350-82b596a31e42bf21cec2a31a3a68c07c1936355d.zip |
FULLPIPE: Several methods for motion controller
Diffstat (limited to 'engines/fullpipe/motion.h')
-rw-r--r-- | engines/fullpipe/motion.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index 39fadbe6e2..28e4297337 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -27,11 +27,16 @@ namespace Fullpipe { class CMotionController : public CObject { int _field_4; - int _isEnabled; + bool _isEnabled; public: - CMotionController() : _isEnabled(1) {} + CMotionController() : _isEnabled(true) {} virtual bool load(MfcArchive &file); + + void setEnabled() { _isEnabled = true; } + void clearEnabled() { _isEnabled = false; } + + virtual void addObject(StaticANIObject *obj) {} }; class CMctlCompoundArray : public Common::Array<CObject>, public CObject { @@ -49,6 +54,9 @@ class CMctlCompound : public CMotionController { public: virtual bool load(MfcArchive &file); + + virtual void addObject(StaticANIObject *obj); + void initMovGraph2(); }; class Unk2 : public CObject { @@ -76,10 +84,11 @@ class CMovGraphReact : public CObject { // Empty }; -class CMctlCompoundArrayItem : public CMotionController { +class CMctlCompoundArrayItem : public CObject { friend class CMctlCompound; protected: + CMotionController *_motionControllerObj; CMovGraphReact *_movGraphReactObj; CMctlConnectionPointsArray _connectionPoints; int _field_20; @@ -149,6 +158,8 @@ class CMovGraph : public CMotionController { public: CMovGraph(); virtual bool load(MfcArchive &file); + + virtual void addObject(StaticANIObject *obj); }; class CMctlConnectionPoint : public CObject { |