ftp.nice.ch/pub/next/games/card/Cribbage.1.1.s.tar.gz#/Cribbage/Cribbage-1.1/ScoreBoard.h

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

// ScoreBoard.h
// Project: Cribbage
// Stephan Wacker
// 93-06-20


#import <appkit/appkit.h>

@interface ScoreBoard: View
{
    id		scoreField;
    id		gamesField;
    id		backgroundView;
    id		goalView;
    
    NXImage	*pegImage;
    
    int		score, prevScore;	/* current and previous score */
    
    int		games;			/* # games won */
}


- (NXColor) color;
- (BOOL) topRowFirst;

- initFrame: (const NXRect *) frameRect;
- drawSelf: (const NXRect *) rects: (int) rectCount;
- changePegColor;
 
- (int) score;
- (int) limit;

- clear;
- peg: (int) points;
- win: (int) gameValue;

- removePeg: (int) pos;
- putPeg: (int) pos;


@end	// ScoreBoard

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