diff options
author | Colin Snover | 2017-11-12 17:05:24 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | f41074b9309b39204b56032ea3562f6323dcac62 (patch) | |
tree | f7fe389e032e5cb0a81844207350f6496f596a3c /engines/fullpipe/motion.h | |
parent | cc905d7f9a4be668c3fc1e8090cb996feea9b8f3 (diff) | |
download | scummvm-rg350-f41074b9309b39204b56032ea3562f6323dcac62.tar.gz scummvm-rg350-f41074b9309b39204b56032ea3562f6323dcac62.tar.bz2 scummvm-rg350-f41074b9309b39204b56032ea3562f6323dcac62.zip |
FULLPIPE: Improve memory ownership in Motion
Diffstat (limited to 'engines/fullpipe/motion.h')
-rw-r--r-- | engines/fullpipe/motion.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index 7c25080485..c08d56fd8c 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -276,11 +276,14 @@ struct MovGraphItem { }; class MovGraph : public MotionController { -public: +friend class MctlCompound; +friend class MctlGraph; +friend class MotionController; +private: ObList _nodes; ObList _links; int _field_44; - Common::Array<MovGraphItem *> _items; + Common::Array<MovGraphItem> _items; MovArr *(*_callback1)(StaticANIObject *ani, Common::Array<MovItem *> *items, signed int counter); AniHandler _aniHandler; @@ -288,6 +291,8 @@ public: MovGraph(); virtual ~MovGraph(); + static int messageHandler(ExCommand *cmd); + virtual bool load(MfcArchive &file); virtual void attachObject(StaticANIObject *obj); |