From 7e310422c3d704a5d7faa5219082be827c71e534 Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sun, 18 Mar 2007 20:18:19 +0000 Subject: - 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 --- engines/parallaction/commands.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/parallaction/commands.h') 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 -- cgit v1.2.3