File:  [NeXTSTEP 3.3 examples] / Examples / AppKit / BackspaceViews / Life / LifeView.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:48:32 2018 UTC (8 years, 1 month ago) by root
Branches: NeXT, MAIN
CVS tags: NeXTSTEP33, HEAD
Sample Programs from NeXSTEP 3.3

#import <appkit/View.h>

#define MAXCOLS 140
#define MAXROWS 104
#define COLORS 18
#define CHANGECOUNT 2000

@interface LifeView:View
{
	unsigned char g1[MAXCOLS][MAXROWS];
	unsigned char g2[MAXCOLS][MAXROWS];
	
	unsigned char (*grid)[MAXROWS];
	unsigned char (*oldGrid)[MAXROWS];
	
	int ncols, nrows;
	int countDown;
	
	float colorTable[COLORS];
	NXRect changed[CHANGECOUNT];
	
	int stasis[24];
	int sindex;

	id sharedInspectorPanel;
}

- oneStep;
- drawSquares;
- drawSelf:(const NXRect *)rects :(int)rectCount;
- (const char *) windowTitle;
- initFrame:(const NXRect *)frameRect;
- sizeTo:(NXCoord)width :(NXCoord)height;
- initLife;
- checkStasis:(int)checksum;
- inspector:sender;

@end

@interface StaticLifeView:LifeView
{
}
@end


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.