ftp.nice.ch/pub/next/tools/screen/backspace/FireWorks.s.tar.gz#/FireWorksView.source/FireworksView.h

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

#import "BackView.h"

#define MAXINTF 4294967295.0 // to turn random 32-bit int to float 0<x<1
#define MAXWORKS 20 // erase screen after 20 fireworks
#define RND(x) ((random()/MAXINTF) * x)
@interface FireworksView:BackView
{
    int mywidth, myheight;	// how big am I?
    int winNum;			// who am I?
    float curX, curY;		// where am I?
    id  myPrefWindow;		// Preferences Window
    
    // variables for the fireworks
    float newx, newy, oldx, oldy, xvel, yvel;
    float offx, offy, linex, liney;
    float grav;
    int i, numWorks;
}

- initFrame:(NXRect *)frameRect;
- sizeTo:(NXCoord)width :(NXCoord)height;
- oneStep;
- newOne;
- drawSelf:(const NXRect *)rects :(int)rectCount;
- (BOOL)isBoringScreenSaver;
- (BOOL) useBufferedWindow;

- show;

@end

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