Mercurial > ~darius > hgwebdir.cgi > paradise_server
view src/shmemP.h @ 7:814de70c9f67
Initial revision
author | darius |
---|---|
date | Sat, 06 Dec 1997 04:37:04 +0000 |
parents | 8c6d5731234d |
children |
line wrap: on
line source
/*-------------------------------------------------------------------------- NETREK II -- Paradise Permission to use, copy, modify, and distribute this software and its documentation, or any derivative works thereof, for any NON-COMMERCIAL purpose and without fee is hereby granted, provided that this copyright notice appear in all copies. No representations are made about the suitability of this software for any purpose. This software is provided "as is" without express or implied warranty. Xtrek Copyright 1986 Chris Guthrie Netrek (Xtrek II) Copyright 1989 Kevin P. Smith Scott Silvey Paradise II (Netrek II) Copyright 1993 Larry Denys Kurt Olsen Brandon Gillespie --------------------------------------------------------------------------*/ #ifndef _shmemP_h #define _shmemP_h struct memory { int shmem_size; /* sizeof(struct memory) sort of a magic * number so that we don't connect an * obsolete program to the shmem. */ struct player players[MAXPLAYER]; struct torp torps[MAXPLAYER * MAXTORP]; struct missile missiles[MAXPLAYER * NPTHINGIES]; struct thingy thingies[NGTHINGIES]; struct plasmatorp plasmatorps[MAXPLAYER * MAXPLASMA]; struct status status; struct status2 status2; struct planet planets[MAXPLANETS]; struct t_unit terrain_grid[(MAX_GWIDTH / TGRID_GRANULARITY) * (MAX_GWIDTH / TGRID_GRANULARITY)]; struct phaser phasers[MAXPLAYER]; int stars[MAXPLANETS + 1]; /* indices of the stars in the game, indexed * on system number */ struct mctl mctl; struct message messages[MAXMESSAGE]; struct team teams[MAXTEAM + 1]; struct ship shipvals[NUM_TYPES]; struct configuration configvals; char cluephrase_storage[CLUEPHRASE_SIZE]; char galaxyValid[MAXPLAYER]; }; #endif /* _shmemP_h */