home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / animutil / playsr / playsr.arc / script.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-10  |  2.0 KB  |  93 lines

  1. /* :ts=8 */
  2.  
  3. #include <exec/types.h>
  4.  
  5. struct action {
  6.     struct action    *next;
  7.     USHORT        type;
  8.     USHORT        data;
  9. };
  10.  
  11. struct loop {
  12.     struct loop    *next;
  13.     struct action    *action_list;
  14.     SHORT        rpt_cnt;
  15.     SHORT        rpt_val;
  16. };
  17.  
  18. struct    scene {
  19.     struct scene    *next;
  20.     struct loop    *loop_list;
  21.     SHORT        number;
  22.     BYTE        name[22];
  23. };
  24.  
  25. #define    ACT_END        0
  26. #define    ACT_EXPAND    1
  27. #define ACT_BLACK    2
  28. #define    ACT_SCENE    3
  29. #define    ACT_STARTLOOP    4
  30. #define    ACT_ENDLOOP    5
  31. #define    ACT_RATE    6
  32. #define    ACT_PAUSE    7
  33. #define ACT_MUSIC    8
  34. #define ACT_HOLD    9
  35. #define ACT_LOCK    10
  36. #define ACT_FREE    11
  37.  
  38. #define    HLD_FOREVER    0
  39. #define    HLD_SPACEBAR    1
  40. #define    HLD_MUSIC    2
  41.  
  42. /*
  43.  *    ACT_END        - end of action list for MOVIE/SCENE
  44.  *              data field is zero.
  45.  *    ACT_EXPAND    - expand frame/swap buffers
  46.  *              data field is cell number to expand
  47.  *    ACT_BLACK    - clear frame/swap buffers
  48.  *              data field RGB value to clear to (default 0)
  49.  *    ACT_SCENE    - play scene
  50.  *              data field is the scene number in the order
  51.  *              the scenes appear in the script file.  (i.e.
  52.  *              MOVIE is scene #0, next scene is scene #1, etc.)
  53.  *    ACT_STARTLOOP    - start loop
  54.  *              data field is used as loop counter
  55.  *    ACT_ENDLOOP    - end loop
  56.  *              data field is terminal loop count
  57.  *    ACT_RATE    - set delay/frame
  58.  *              data field is 60ths of sec/frame
  59.  *    ACT_PAUSE    - delay for time period
  60.  *              data field is 60ths of sec.
  61.  *    ACT_MUSIC    - start music
  62.  *              data field is SMUS file number
  63.  *    ACT_LOCK    - lock palette to next cell's palette
  64.  *    ACT_FREE    - free locked palette (next cell uses its own)
  65.  *    ACT_HOLD    - hold 'till some action occurs
  66.  *              data field indicates action.
  67.  *
  68.  *        HLD_FOREVER    - hold forever
  69.  *        HLD_SPACE    - hold until user hits spacebar
  70.  *        HLD_MUSIC    - hold until music stops
  71. */
  72.  
  73. struct delta    {
  74.     struct delta    *next;
  75.     ULONG        from, to;
  76. };
  77.  
  78. #define    TOK_COMMENT    1
  79. #define    TOK_SCENE    2
  80. #define    TOK_MOVIE    3
  81. #define    TOK_RATE    4
  82. #define    TOK_PAUSE    5
  83. #define    TOK_PLAY    6
  84. #define    TOK_BLACK    7
  85. #define    TOK_HOLD    9
  86. #define    TOK_LOCK    10
  87. #define    TOK_FREE    11
  88. #define    TOK_BAD        12
  89.  
  90. #define    BLACK    1
  91. #define    HOLD    2
  92.  
  93.