ftp.nice.ch/pub/next/games/card/NEXTVegas3.0.src.tar.gz#/NEXTVegas/Blackjack/BJ.h

This is BJ.h in view mode; [Download] [Up]

#define BJ_ACE_HIGH_VALUE 11
#define BJ_ACE_LOW_VALUE 1
#define BJ_TWO_VALUE 2 
#define BJ_THREE_VALUE 3
#define BJ_FOUR_VALUE 4
#define BJ_FIVE_VALUE 5
#define BJ_SIX_VALUE 6
#define BJ_SEVEN_VALUE 7 
#define BJ_EIGHT_VALUE 8
#define BJ_NINE_VALUE 9
#define BJ_TEN_VALUE 10
#define BJ_FACE_VALUE 10

#define BJ_MAXPLAYERS 4

#define BJ_REGULAR_HAND 0
#define BJ_SPLIT_HAND 1

#define BJ_PLAYING 0
#define BJ_NOT_PLAYING -1
#define BJ_BUSTED 1
#define BJ_LOSER 2
#define BJ_WINNER 3
#define BJ_PUSH 4
#define BJ_BLACKJACK 21

#define BJ_INSURANCEVIEW 10
#define BJ_BETVIEW 0

#define BJ_DEALER 4

#define BJ_DEALERSTAND17 0
#define BJ_DEALERHITSOFT17 1
#define BJ_ONLYDOUBLE10OR11 0
#define BJ_CANALWAYSDOUBLE 1

typedef struct _BJHand BJHand;

struct _BJHand
{
	int numCards;
	int total;
	id	pile;
	id	view;
	int status;
	BOOL	wasPaid;
	id	handText;
	id	totalText;
	BOOL	canDouble;
	BOOL	canSplit;
	BOOL	canSurrender;
};

typedef struct _BJPlayer BJPlayer;

struct _BJPlayer
{
	id	player;
	id	betView;
	id	insuranceView;
	BJHand hand[2];
	int	numHands;
	BOOL isPlaying;
	id	dBetText;
	id	dBetButton;
	id	PButton;
	id	RWButton;
	int lastBet;
};

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.