[Scummvm-cvs-logs] CVS: scummvm/saga actordata.h,1.6,1.7

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Tue Oct 26 00:02:00 CEST 2004


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24580

Modified Files:
	actordata.h 
Log Message:
Rename fields in R_ACTORTABLE struct (I think this is what they mean), and
added symbolic names for actor flags.


Index: actordata.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actordata.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- actordata.h	29 May 2004 21:03:56 -0000	1.6
+++ actordata.h	26 Oct 2004 07:01:26 -0000	1.7
@@ -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





More information about the Scummvm-git-logs mailing list