This is CountryShape.h in view mode; [Download] [Up]
// // $Id: CountryShape.h,v 1.2 1997/12/15 07:43:47 nygard Exp $ // This file is a part of Risk by Mike Ferris. // #import <AppKit/AppKit.h> @class SNUserPath, Country, RiskMapView; @interface CountryShape : NSObject { SNUserPath *userPath; NSPoint armyCellPoint; //NSRect shapeBounds; } + (void) initialize; + countryShapeWithUserPath:(SNUserPath *)aUserPath armyCellPoint:(NSPoint)aPoint; - initWithUserPath:(SNUserPath *)aUserPath armyCellPoint:(NSPoint)aPoint; - (void) dealloc; - (void) encodeWithCoder:(NSCoder *)aCoder; - initWithCoder:(NSCoder *)aDecoder; - (void) drawWithCountry:(Country *)aCountry inView:(RiskMapView *)aView isSelected:(BOOL)selected; - (BOOL) pointInShape:(NSPoint)aPoint; - (NSPoint) centerPoint; - (NSRect) bounds; - (NSString *) description; @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.