ftp.nice.ch/pub/next/tools/screen/backspace/old/Toasters.1.0.N.bs.tar.gz#/toasters/FlyingImage.h

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

/*																										*/
/* Copyright (c) 1991																			*/
/* Pages / KVM  Banzai Research Inst.														*/
/* 3914 Murphy Cyn Rd.																			*/
/* San Diego, CA 92123																			*/
/* (619) 492-9050																					*/
/*																										*/

/* RCS History Section-------------------------------------------------------	*/

#ifdef RCSID
static char _rcsid[] = "$Header$";
#endif

/*
 * $Log$
 */


/* RCS History Section-------------------------------------------------------	*/


/* Description --------------------------------------------------------------	*/
/*  																									*/
/*		This object is the programatic representation of a toaster (or piece		*/
/*		of toast). This is where most of the work for toasters gets done.			*/
/*  																									*/
/*  	Nov 14, 1991: Bruce Henderson (bruce@pages.com)									*/
/*  																									*/
/* Description --------------------------------------------------------------	*/

#import <objc/Object.h>
#import <appkit/graphics.h>

#define MAX_FRAME		3
#define MIN_FRAME		0

@interface FlyingImage:Object
{
	NXRect		target;
	id				image;
	id				owner;
	int			frame;
	float			speed;
	BOOL			isToast;
	BOOL			increment;
}

- initAtPoint:(NXPoint*)start andSpeed:(float)moveSpeed isToast:(BOOL)toastFlag for:owningView;

- move;

- setPostition:(NXPoint)startPoint;

- setFrame:(int)startFrame;

- display;

- (NXRect)targetRect;

- (float)speed;

- setSpeed:(float)newSpeed;

@end

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