Some cleanups, comments.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2460 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-10-26 21:58:48 +00:00
parent 6742f38bc9
commit eee3791e1c
+14 -2
View File
@@ -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;