ftp.nice.ch/pub/next/games/card/NeXTmille.2.0.s.tar.gz#/NeXTmille-2.0a/MilesView.m

This is MilesView.m in view mode; [Download] [Up]

/* Generated by Interface Builder */

#import "MilesView.h"
#import	"cards.h"
#import	"cheap_strings.h"
#import	<assert.h>

	
	static float	topBox[]	= { 8, 120, 16, 16 },
					centerBox[]	= { 27, 34, 46, 46 },
					bottomBox[]	= { 78, 2, 16, 16 };
					
					
@implementation MilesView


- init
{


	[ super init ];
	bottomFaceBitmap = 	[[ CardImage allocFromZone:cardZone ] initFromFile:MILES_BOTTOM_FACE_TEMPLATE ];
	assert( bottomFaceBitmap );
	
	return self;
}


- drawSelf:( const NXRect * )rects :( int )rectCount
{


	[ super drawSelf:rects :rectCount ];
	if( !showTopFaceFlag ) {
		draw_int( bottomBox,	NX_DKGRAY, 14,	myMiles );
		draw_int( centerBox,	NX_DKGRAY, 24,	myMiles );
		draw_int( topBox,		NX_DKGRAY, 14,	myMiles );
	}
	
	return self;
}


@end

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