home *** CD-ROM | disk | FTP | other *** search
-
- /* Generated by Interface Builder */
-
- #import "GameView.h"
-
- #define STILL 0
- #define M_UP 1
- #define M_DOWN 2
- #define M_LEFT 3
- #define M_RIGHT 4
-
- #define GODIR [[dirButtons selectedCell] tag]
- #define GOUP (direction == M_UP)
- #define GODOWN (direction == M_DOWN)
- #define GOLEFT (direction == M_LEFT)
- #define GORIGHT (direction == M_RIGHT)
- #define MOVEINC ([distText intValue])
- #define UPDATEFREQ ([freqSlider intValue])
- #define NUM_FRAMES ([[framesToShow selectedCell] tag]+1)
- #define SERIES ([[seriesButtons selectedCell] tag])
- #define IMAGENAME "Player.tiff"
- #define BLOCK_X [widthField intValue]
- #define BLOCK_Y [heightField intValue]
-
- @interface AnimView:GameView
- {
- id runner;
- id seriesButtons;
- id freqSlider;
- id framesToShow;
- id distSlider;
- id distText;
- id dirButtons;
- id widthField;
- id heightField;
-
- int frameShown;
- NXPoint position;
- }
-
- - initFrame:(const NXRect *)frm; // initialize instance
- - loadPix; // gameBrain calls this from appDidInit
- - autoUpdate:sender; // sent by timer
- - drawSelf:(NXRect *)rects :(int)rectCount; //used by internals for speed
- - updateSelf:(NXRect *)rects :(int)rectCount; //used by internals for speed
- - changeDist:sender;
-
- @end
-