ftp.nice.ch/pub/next/games/fun/cookie.s.tar.gz#/Cookie/StellaView.h

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

/* Generated by Interface Builder */

#import <appkit/View.h>

#define NUMBER_STARS		25
#define MAX_MAGNITUDE	7
#define STAR_WIDTH 		7
#define STAR_HEIGHT 		11

struct StellaStar
{
	int x,y;
	char cycle,magnitude;
	BOOL forward;
};

@interface StellaView:View
{
	struct _stellaFlags {
		unsigned int blankedscreen:1;
		} flags;
	struct StellaStar stars[NUMBER_STARS];
	int width,height;
	DPSTimedEntry myTimedEntry;
}

- drawSelf:(const NXRect *)rects :(int)rectCount;
- startAnimation;
- endAnimation;
- initFrame:(const NXRect *)frameRect;
- makeMyStar :(int)number;
- (BOOL)starExists :(int)x :(int)y;
- showStar :(int)x :(int)y :(int)cycle;
- deleteStar :(int)x :(int)y;

@end

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