/***************************************************************************
 *
 * card.h
 *
 ***************************************************************************
 *
 *
 *
 ***************************************************************************/

#ifndef CARD_H_INCLUDED
#define CARD_H_INCLUDED

/*
 * includes
 */

/*
 * defines
 */

#include "resman.h"
#include "define.h"

/*
 * typedefs
 */

/*
 * structures
 */

typedef struct _img
{
	unsigned short	sx;
	unsigned short	sy;
	unsigned short	numTiles;
	unsigned short	pad;
	unsigned short	data[1];
} img;

/*
 * globals
 */

extern int currentCardType;
extern unsigned short *powerPalettes[8];
extern char *suffix[];

/*
 * function prototypes
 */

extern void CardOpen(struct openSet *resources,unsigned short *pal);
extern void CardClose(void);
extern void CardSetReplay(void);
extern void CardSetReplaySmall(void);
extern void CardSetPlyr(int pno,int type);
extern void CardSetUpdate(int team, char *type, char *text);
extern void CardSetScore(void);
extern void CardSetNone(void);
extern void CardRender(Gfx **gl,int windowY);
extern void PowerRender(Gfx **gl,int windowX,int windowY);
extern void FlipBitmap(unsigned char *c,int x,int y);
extern Gfx *CardRenderLittle(Gfx *gp,int windowY);

#endif
