home *** CD-ROM | disk | FTP | other *** search
- /* :ts=8 */
-
- #include <exec/types.h>
-
- struct action {
- struct action *next;
- USHORT type;
- USHORT data;
- };
-
- struct loop {
- struct loop *next;
- struct action *action_list;
- SHORT rpt_cnt;
- SHORT rpt_val;
- };
-
- struct scene {
- struct scene *next;
- struct loop *loop_list;
- SHORT number;
- BYTE name[22];
- };
-
- #define ACT_END 0
- #define ACT_EXPAND 1
- #define ACT_BLACK 2
- #define ACT_SCENE 3
- #define ACT_STARTLOOP 4
- #define ACT_ENDLOOP 5
- #define ACT_RATE 6
- #define ACT_PAUSE 7
- #define ACT_MUSIC 8
- #define ACT_HOLD 9
- #define ACT_LOCK 10
- #define ACT_FREE 11
-
- #define HLD_FOREVER 0
- #define HLD_SPACEBAR 1
- #define HLD_MUSIC 2
-
- /*
- * ACT_END - end of action list for MOVIE/SCENE
- * data field is zero.
- * ACT_EXPAND - expand frame/swap buffers
- * data field is cell number to expand
- * ACT_BLACK - clear frame/swap buffers
- * data field RGB value to clear to (default 0)
- * ACT_SCENE - play scene
- * data field is the scene number in the order
- * the scenes appear in the script file. (i.e.
- * MOVIE is scene #0, next scene is scene #1, etc.)
- * ACT_STARTLOOP - start loop
- * data field is used as loop counter
- * ACT_ENDLOOP - end loop
- * data field is terminal loop count
- * ACT_RATE - set delay/frame
- * data field is 60ths of sec/frame
- * ACT_PAUSE - delay for time period
- * data field is 60ths of sec.
- * ACT_MUSIC - start music
- * data field is SMUS file number
- * ACT_LOCK - lock palette to next cell's palette
- * ACT_FREE - free locked palette (next cell uses its own)
- * ACT_HOLD - hold 'till some action occurs
- * data field indicates action.
- *
- * HLD_FOREVER - hold forever
- * HLD_SPACE - hold until user hits spacebar
- * HLD_MUSIC - hold until music stops
- */
-
- struct delta {
- struct delta *next;
- ULONG from, to;
- };
-
- #define TOK_COMMENT 1
- #define TOK_SCENE 2
- #define TOK_MOVIE 3
- #define TOK_RATE 4
- #define TOK_PAUSE 5
- #define TOK_PLAY 6
- #define TOK_BLACK 7
- #define TOK_HOLD 9
- #define TOK_LOCK 10
- #define TOK_FREE 11
- #define TOK_BAD 12
-
- #define BLACK 1
- #define HOLD 2
-
-