home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Examples / InfoWow-0.00-MIHS / src / WowView.h < prev    next >
Encoding:
Text File  |  1993-12-07  |  879 b   |  33 lines

  1. #import <appkit/appkit.h>
  2. #import "AnimatedView.h"
  3.  
  4. #define FADE_IN_WELCOME    0
  5. #define WELCOME_HOLD    FADE_IN_WELCOME + 1
  6. #define SCROLLING        WELCOME_HOLD + 1
  7. #define SCROLL_HOLD        SCROLLING + 1
  8. #define FADE_TO_CREDIT    SCROLL_HOLD + 1
  9. #define CREDITS_HOLD    FADE_TO_CREDIT + 1
  10. #define FADE_TO_GRAY    CREDITS_HOLD + 1
  11. #define NUMSTATES        FADE_TO_GRAY + 1
  12.  
  13. #define WELCOME_FRAMES    20
  14. #define CREDIT_FRAMES    10
  15. #define HOLD_FRAMES        30
  16. #define SCROLL_FRAMES    650
  17. #define SCROLL_JUMP        3
  18.  
  19. @interface WowView:AnimatedView
  20. {
  21.     id welcomeImage;
  22.     id creditsImage;
  23.     id scrollImage;
  24.     int state;
  25.     int frameNumber;
  26. }
  27.  
  28. - initFrame:(const NXRect *)frm;            // initialize instance
  29. - autoUpdate:sender;                        // moves to the next frame
  30. - drawSelf:(NXRect *)rects :(int)rectCount;    // redraws the screen
  31. - start:sender;                                // overridden to guarantee we
  32.                             // start at the first state when this is called.
  33. @end