
/*
 * Copyright (c) 1991    Jon Wesener 
 * Gaming Software
 *
 * Permission to use, copy, modify, and distribute this
 * software and its documentation for any purpose and without
 * fee is hereby granted, provided that the above copyright
 * notice appear in all copies and that both that copyright
 * notice and this permission notice appear in supporting
 * documentation.  No representations are made about the
 * suitability of this software for any purpose.  It is
 * provided "as is" without express or implied warranty.
 *
 */

#ident	"@(#)client.h	1.13 :/usr/key/jojow/X/src/guts/SCCS/s.client.h 3/19/91 10:15:42 "

#include "tank.h"

/* EXTERNALS */
extern Pixmap	tcells[MAXTANK][MAXDIR];
extern Pixmap	scells[MAXDIR];
extern Pixmap	hcells[MAXDIR];
extern Pixmap	ecells[EXPCNT];
extern Pixmap	mcell;
extern Pixmap	pcell;
extern Pixmap	wcells[MAXWALL];
extern Pixmap	xcell;
extern Pixmap	bcells[BONCNT];

/* STRUCTURES */

struct blob {
	char	b_type;				/* type of object to draw */
	char	b_dir;				/* direction/frame of object */
	char	b_id;				/* tank id */
	char	b_state;			/* blob state */
#define		BVALID		0x1
#define		BDRAW		0x2
#define		BNODRAW		0x4
#define		BERASE		0x8
	char	b_x;
	char	b_y;				/* position */
	struct blob		*b_next;	/* forward chain */
	struct blob		*b_last;	/* reverse chain */
};
typedef struct blob blob_t;

struct stat {
	char	st_str[MAXSTRLEN];	/* stat line val */
	char	st_state;			/* statistic state */
};
typedef struct stat stat_t;

#define ESTATX		((MAZE_XL+ 1) * TANK_LEN + 5)
#define ESTATY		(TANK_LEN*2 - 3)

#define STATYPOS	4
#define STATIDX		(MAZE_XL * TANK_LEN)
#define STATIDY(st)		(TANK_LEN*(st+STATYPOS))
#define STATX		((MAZE_XL+1) * TANK_LEN + 3)
#define STATY(st)		(TANK_LEN*(st+STATYPOS) + 3)

/* Wait this long before killing a non-active player */
#define LASTACT		10000

/* OTHER */
