ftp.nice.ch/pub/next/developer/resources/libraries/gamekit_proj.NI.sa.tar.gz#/gamekit_proj/Examples/PacMan/FruitView.h

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

// This draw x fruits, depending on the level we're at.  Used in the
// "Fruit Basket" window.

#import <appkit/appkit.h>

#define FRUIT_SIZE 16	// 32 pixels square
#define FRUIT_PER_ROW 5	// per row on base image
#define FRUIT_LEVELS 16	// # levels with fruit specified;
		// after that, we use NeXTcubes.

extern int fruits[FRUIT_LEVELS + 1];


@interface FruitView:View
{
	id   fruit;		// image with all the fruit in it.
	
	int  lastLevel;	// highest level reached by player.
}

- initFrame:(const NXRect *)frm;	// initialize instance
- drawSelf:(NXRect *)rects :(int)rectCount;  // standard rendering method
- showLevel:(int)num;				// draw all fruits up to level

@end

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