diff options
author | Torbjörn Andersson | 2004-10-26 07:01:26 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-10-26 07:01:26 +0000 |
commit | 83605fec24194ce2f03b52e59abd1d4915ffdc9f (patch) | |
tree | be0bfd6033f4344b1533e492c8d95076fa88c1e1 /saga | |
parent | 376f51ba7954d5fe09c2887d4027a0f208c702e9 (diff) | |
download | scummvm-rg350-83605fec24194ce2f03b52e59abd1d4915ffdc9f.tar.gz scummvm-rg350-83605fec24194ce2f03b52e59abd1d4915ffdc9f.tar.bz2 scummvm-rg350-83605fec24194ce2f03b52e59abd1d4915ffdc9f.zip |
Rename fields in R_ACTORTABLE struct (I think this is what they mean), and
added symbolic names for actor flags.
svn-id: r15685
Diffstat (limited to 'saga')
-rw-r--r-- | saga/actordata.h | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/saga/actordata.h b/saga/actordata.h index f0671e10bd..a533e7cb7f 100644 --- a/saga/actordata.h +++ b/saga/actordata.h @@ -28,21 +28,33 @@ namespace Saga { +enum { + kProtagonist = 0x01, // Actor is protagonist + kFollower = 0x02, // Actor is follower + kCycle = 0x04, // Actor stand has a cycle + kFaster = 0x08, // Actor is fast + kFastest = 0x10, // Actor is faster + kExtended = 0x20 // Actor uses extended sprites +}; + +// TODO: This doesn't quite correspond to the original Actor struct, so I'm not +// sure if I got it right. + struct R_ACTORTABLE { - byte unknown4; - byte unknown5; + byte type; // Always 1 (remove this?) + byte flags; byte name_index; - int32 unknown8; // 1 - int16 x; // x - int16 y; // y - int16 unknown10; // 4 + int32 scene_index; + int16 x; + int16 y; + int16 z; int32 spritelist_rn; int32 spriteindex_rn; - byte unknown24; // 5 + byte script_rn; byte color; - byte unknown39; // 6 - byte unknown3a; // 7 - byte unknown3b; // 8 + byte action; + byte facing_dir; + byte action_dir; }; #define R_ACTORCOUNT 181 |