ftp.nice.ch/pub/next/developer/objc/appkit/AnimTester.s.tar.gz#/AnimTester/AnimView.h

This is AnimView.h in view mode; [Download] [Up]

/* Generated by Interface Builder */

#import "GameView.h"

// BLOCK_SIZE and IMAGENAME shouldn't be hardcoded.  I should move them
// into the interface for the user to control.
#define BLOCK_SIZE 32.0

#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"

@interface AnimView:GameView
{
	id runner;
	id seriesButtons;
	id freqSlider;
	id framesToShow;
	id distSlider;
	id distText;
	id dirButtons;
	
	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

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.