ftp.nice.ch/pub/next/games/action/MissileCommand.2.0.NIHS.bs.tar.gz#/MissileCommand.2.0.NIHS.bs/Source/HighScoreTable.h

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

/* Generated by Interface Builder */

#import <objc/Object.h> 	// superclass

#define MAXSCORES 10	// max # of high scores

@interface HighScoreTable:Object
{
    id	highScoreDispMatrix;	// matrix to show top ten scores
    id  highScorePanel;		// window with high score (top 10) matrix    
    id  highCell;		// used internally by high score routines
    //id  preferences;		// PreferencesBrain object
    //id gameWindow;
    char *scoreFileName;	// ditto
    
    // instance variables to hold preferences and game status:
    int highScores[MAXSCORES];
    char *highNames[MAXSCORES], *defaultPlayerName;
}

- init;				// designated initializer

- highScorePanel;
- setHighScorePanel:(id)panel;
- highScoreDispMatrix;
- setHighScoreDispMatrix:(id)matrix;
- (int)highScore:(int)num;	// returns high score [num] (0-9) of top ten
				// zero is highest, nine is lowest
- setDefaultPlayerName:(const char *)name; // set up name to auto-enter
- (const char *)defaultPlayerName; // return auto-entered name

- findHighScoreText:sender;	// internal method - see code

- showHighScores;		// fills high score matrix and displays panel
- putInHighScores:(int)score;	// put player in high scores if applicable
- zeroHighScores;		// clears high scores
- readHighScores;		// read high scores from a file
- writeHighScores;		// write high scores to a file
	
	// Interface Builder (IB) methods:
- clearHighScores:sender;	// target of Clear High Scores menu item
- displayHighScores:sender;	// target of High Scores.. menu item
- acceptHighScore:sender;	// target of top 10 matrix (user enters name)

@end		

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