diff options
author | Nicola Mettifogo | 2007-03-18 20:18:19 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-03-18 20:18:19 +0000 |
commit | 7e310422c3d704a5d7faa5219082be827c71e534 (patch) | |
tree | 8df99831b27981d6d8c412def400776cd4ebf45f /engines/parallaction/commands.h | |
parent | 2ea44bf1eee6411b9648e72d00e78470a6f71caf (diff) | |
download | scummvm-rg350-7e310422c3d704a5d7faa5219082be827c71e534.tar.gz scummvm-rg350-7e310422c3d704a5d7faa5219082be827c71e534.tar.bz2 scummvm-rg350-7e310422c3d704a5d7faa5219082be827c71e534.zip |
- added constructors for most structs
- structs are now allocated via new instead of malloc's
- respective free's have been replaced with delete
svn-id: r26228
Diffstat (limited to 'engines/parallaction/commands.h')
-rw-r--r-- | engines/parallaction/commands.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/parallaction/commands.h b/engines/parallaction/commands.h index 046f413469..40c5c1b626 100644 --- a/engines/parallaction/commands.h +++ b/engines/parallaction/commands.h @@ -34,6 +34,7 @@ enum CommandFlags { kFlagsGlobal = 0x40000000 }; +// TODO: turn this into a struct union CommandData { uint32 _flags; Animation * _animation; @@ -45,6 +46,10 @@ union CommandData { int16 _x; int16 _y; } _move; + + CommandData() { + _flags = 0; + } }; struct Command : public Node { @@ -53,6 +58,11 @@ struct Command : public Node { uint32 _flagsOn; uint32 _flagsOff; + Command() { + _id = 0; + _flagsOn = 0; + _flagsOff = 0; + } }; } // namespace Parallaction |