	IFND GRAPHICS_CARDS_I
GRAPHICS_CARDS_I  SET  1

**
**  $VER: cards.i V0.8B
**
**  (C) Copyright 1996-1997 DreamWorld Productions.
**      All Rights Reserved
**

	IFND    DPKERNEL_I
	include 'games/dpkernel.i'
	ENDC

	IFND	MODULE_CARDS_I
	include	"modules/cards.i"
	ENDC

****************************************************************************
* Module details.

Cards_ModVersion  =  0
Cards_ModRevision =  8

****************************************************************************
* The CardSet structure for playing cards.

CSVERSION    = 1
TAGS_CARDSET = ((ID_SPCTAGS<<16)|ID_CARDSET)

    STRUCTURE	CS1,HEAD_SIZEOF
	WORD	CS_Card         ;Card number to draw.
	WORD	CS_AmtCards     ;Number of cards in deck.
	LONG	CS_AmtColours   ;Amount of colours
	APTR	CS_Palette      ;Pointer to palette
	LONG	CS_Options      ;Options like GETPALETTE.
	LONG	CS_Attrib       ;Blitting attributes.
	APTR	CS_Source       ;File that the cardset comes from.
	APTR	CS_Bob          ;Bob structure.
	APTR	CS_Owner        ;Pointer to Bitmap owner.
	WORD	CS_ScrMode      ;Screen mode.	

	*** Private fields start now ***

	BYTE	CS_AFlags       ;Record of previous allocations.
	BYTE	CS_Pad          ;Empty.
	WORD	CS_CardWidth    ;Card width rounded up 16 pixels
	LONG	CS_CardSize     ;Bytes used by each card.
	LONG	CS_Viewmode     ;OS Viewmode ID.
	LONG	CS_RekoRaw      ;Raw file - cardset
	LONG	CS_TaglistBob   ;Tag list used for Bob.
	LONG	CS_GfxDirect    ;Pointer to first graphic.
	LONG	CS_GfxEnd       ;LISTEND terminator for the above.
	LONG	CS_MaskDirect   ;Pointer to first mask.
	LONG	CS_MaskEnd      ;LISTEND terminator for the above.
	LABEL	CS_SIZEOF

;CardSet Tags.

CSA_AmtColours = CS_AmtColours|TLONG
CSA_Palette    = CS_Palette|TAPTR
CSA_ScrMode    = CS_ScrMode|TWORD
CSA_Options    = CS_Options|TLONG
CSA_Attrib     = CS_Attrib|TLONG
CSA_Source     = CS_Source|TAPTR
CSA_Owner      = CS_Owner|TAPTR
CSA_BobTags    = CS_Bob|TSTEPIN
CSA_CardTags   = TAGEND

;Flags for CardSet.

SHUFFLE_NORMAL =   0    ;Mix some times.
SHUFFLE_BABY =     1    ;Move blocks of card in a different position.
SHUFFLE_CROUPIER = 2    ;Divide in two decks and then bend and releasing them.
SHUFFLE_MACHINE	=  3    ;Simulate a casino shuffling machine.
SHUFFLE_GAMBLING = 4    ;Shuffle maintain blocks of cards closer.
SHUFFLE_PARANOID = 5    ;Shuffle many many times.

	ENDC	;GRAPHICS_CARDS_I
