
/* 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
