home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Examples / NX_Invaders / AnimTester / AnimView.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  1.2 KB  |  49 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import "GameView.h"
  5.  
  6. #define STILL    0
  7. #define M_UP    1
  8. #define M_DOWN    2
  9. #define M_LEFT    3
  10. #define M_RIGHT    4
  11.  
  12. #define GODIR        [[dirButtons selectedCell] tag]
  13. #define GOUP        (direction == M_UP)
  14. #define GODOWN        (direction == M_DOWN)
  15. #define GOLEFT        (direction == M_LEFT)
  16. #define GORIGHT        (direction == M_RIGHT)
  17. #define MOVEINC        ([distText intValue])
  18. #define UPDATEFREQ    ([freqSlider intValue])
  19. #define NUM_FRAMES    ([[framesToShow selectedCell] tag]+1)
  20. #define SERIES        ([[seriesButtons selectedCell] tag])
  21. #define IMAGENAME    "Player.tiff"
  22. #define BLOCK_X [widthField intValue]
  23. #define BLOCK_Y [heightField intValue]
  24.  
  25. @interface AnimView:GameView
  26. {
  27.     id runner;
  28.     id seriesButtons;
  29.     id freqSlider;
  30.     id framesToShow;
  31.     id distSlider;
  32.     id distText;
  33.     id dirButtons;
  34.     id widthField;
  35.     id heightField;
  36.     
  37.     int frameShown;
  38.     NXPoint    position;
  39. }
  40.  
  41. - initFrame:(const NXRect *)frm;    // initialize instance
  42. - loadPix;                // gameBrain calls this from appDidInit
  43. - autoUpdate:sender;    // sent by timer
  44. - drawSelf:(NXRect *)rects :(int)rectCount;  //used by internals for speed
  45. - updateSelf:(NXRect *)rects :(int)rectCount;  //used by internals for speed
  46. - changeDist:sender;
  47.  
  48. @end
  49.