home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Examples / InfoWow-0.00-MIHS / src / FlyingWindow.h < prev    next >
Encoding:
Text File  |  1994-03-21  |  494 b   |  20 lines

  1.  
  2. #import <appkit/appkit.h>
  3.  
  4. #define HORIZ_JUMPS    27    // odd number; this / 2 is how far window could
  5.     // move horizontally in one frame's worth of animation.
  6. #define VERT_JUMPS    10    // max initial vertical velocity is this + MIN_VERT
  7. #define MIN_VERT    5    // minimum initial vertical velocity.
  8. #define GRAVITY        1.0    // amount gravity reduces y-velocity
  9.  
  10. @interface FlyingWindow:Window
  11. {
  12.     NXPoint velocity;
  13. }
  14.  
  15. - initAt:(NXPoint *)thePoint;
  16. - reInitAt:(NXPoint *)thePoint;
  17. - move;
  18. - (BOOL)onScreen;
  19.  
  20. @end