From eee3791e1cc51faf9c63c005bceb33b51b238516 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Thu, 26 Oct 2006 21:58:48 +0000 Subject: [PATCH] Some cleanups, comments. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2460 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/globdata.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/globdata.h b/sc2/src/sc2code/globdata.h index fdbab217e..7c78291bb 100644 --- a/sc2/src/sc2code/globdata.h +++ b/sc2/src/sc2code/globdata.h @@ -25,8 +25,11 @@ #include "velocity.h" +// Animation types: #define RANDOM_ANIM (1 << 0) + // Next index is randomly chose #define CIRCULAR_ANIM (1 << 1) + // #define YOYO_ANIM (1 << 2) #define ANIM_MASK (RANDOM_ANIM | CIRCULAR_ANIM | YOYO_ANIM) @@ -42,10 +45,19 @@ typedef struct { COUNT StartIndex; + // Index of the first image (for image animation) or + // index of the first color map (for palette animation) BYTE NumFrames; + // number of frames + BYTE AnimFlags; - COUNT BaseFrameRate, RandomFrameRate, - BaseRestartRate, RandomRestartRate; + // One of RANDOM_ANIM, CIRCULAR_ANIM, or YOYO_ANIM + + COUNT BaseFrameRate; + COUNT RandomFrameRate; + COUNT BaseRestartRate; + COUNT RandomRestartRate; + DWORD BlockMask; } ANIMATION_DESC; typedef ANIMATION_DESC *PANIMATION_DESC;