DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T u

⟦7349e74f3⟧ TextFile

    Length: 819 (0x333)
    Types: TextFile
    Names: »universe.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Spacewar/universe.h« 

TextFile

/*
 * Spacewar - include file that defines objects/parameters of the universe
 *
 * ordering: objects, aliens, crafts&torpedoes (because they can come and go)
 *
 * Copyright 1984 obo Systems, Inc.
 * Copyright 1984 Dan Rosenblatt
 */

struct universe {
	char	uv_type;	/* universe type of object: NULL 'A|P|O|T' */
	char	uv_pctr;	/* universe screen character of object */
	double	*uv_pstn;	/* universe position of object */
	long	uv_mass;	/* universe mass/hull damage of object */
	short	uv_rad;		/* universe radius of object */
	union {
		struct aln *uv_aln;
		struct crft *uv_crft;
		struct obj *uv_obj;
		struct torp *uv_torp;
	} uv_ptr;
	dsplcmnt *uv_dspl;
};

#define MAXUNIVERSE	MAXALN+MAXCRFT+MAXOBJ+MAXTORP

extern struct universe univlst[];

typedef union {
	struct universe *ip_ptr;
	int		 ip_ofst;
} idxptr;