File:  [Research Unix] / researchv9 / jtools / src / demo / asteroids / event.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

#define	Event	AEvent
typedef struct Event{
	struct Event	*next;	/* pointer */
	short		time;	/* time between activations */
	short		type;	/* usually, which object has event */
	short		dt;	/* time left before activation */
	int		(*fn)();	/* action routine */
} Event;
Event	*newevent();
/*
 * Event types
 */
#define	EKEYBOARD	0
#define	EMOUSE		0x8000
#define	EPAUSE		0x4000
#define	ESCORE		0x2000
#define	EEXPL		0x0020	/* allows 16 max explosions at once */
#define	EBOMB		0x0040	/* up to 16 bombs */

unix.superglobalmegacorp.com

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