Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
BlackJack.h File Reference
#include <vector>
#include <Ult/ModelData.h>
#include <Ult/Renderer/OpenGLRenderer.h>
#include <Ult/Texture/Texture.h>

Go to the source code of this file.

Classes

struct  Card
 
class  BlackJackGame
 

Macros

#define WINDOW_NAME   "Black Jack"
 
#define WINDOW_CLASS   "UPGCLASS"
 
#define WINDOW_WIDTH   800
 
#define WINDOW_HEIGHT   600
 
#define WINDOW_FULLSCREEN   0
 
#define BJ_TOTAL_SUITS   4
 
#define BJ_TOTAL_SUIT_CARDS   13
 
#define BJ_TOTAL_CARDS   BJ_TOTAL_SUITS * BJ_TOTAL_SUIT_CARDS
 

Enumerations

enum  BLACK_JACK_GAME_STATE {
  BJ_GAME_INITIALIZING , BJ_GAME_MENU , BJ_GAME_PLAY_START , BJ_GAME_PLAY_DEALING ,
  BJ_GAME_PLAY_PLAYER_MOVE , BJ_GAME_PLAY_CPU_MOVE , BJ_GAME_PLAY_PLAYER_WIN , BJ_GAME_PLAY_CPU_WIN ,
  BJ_GAME_PLAY_PLAYER_CPU_TIE , BJ_GAME_QUIT
}
 
enum  BLACK_JACK_GUI {
  BJ_GUI_MENU = 0 , BJ_GUI_START , BJ_GUI_P1_MOVE , BJ_GUI_CPU_MOVE ,
  BJ_GUI_P1_WIN , BJ_GUI_CPU_WIN , BJ_GUI_P1_CPU_TIE , BJ_TOTAL_GUI
}
 
enum  BLACK_JACK_KEYS { BJ_ESC_KEY , BJ_H_KEY , BJ_S_KEY , BJ_TOTAL_KEYS }
 

Macro Definition Documentation

◆ BJ_TOTAL_CARDS

#define BJ_TOTAL_CARDS   BJ_TOTAL_SUITS * BJ_TOTAL_SUIT_CARDS

◆ BJ_TOTAL_SUIT_CARDS

#define BJ_TOTAL_SUIT_CARDS   13

◆ BJ_TOTAL_SUITS

#define BJ_TOTAL_SUITS   4

◆ WINDOW_CLASS

#define WINDOW_CLASS   "UPGCLASS"

◆ WINDOW_FULLSCREEN

#define WINDOW_FULLSCREEN   0

◆ WINDOW_HEIGHT

#define WINDOW_HEIGHT   600

◆ WINDOW_NAME

#define WINDOW_NAME   "Black Jack"

◆ WINDOW_WIDTH

#define WINDOW_WIDTH   800

Enumeration Type Documentation

◆ BLACK_JACK_GAME_STATE

Enumerator
BJ_GAME_INITIALIZING 
BJ_GAME_MENU 
BJ_GAME_PLAY_START 
BJ_GAME_PLAY_DEALING 
BJ_GAME_PLAY_PLAYER_MOVE 
BJ_GAME_PLAY_CPU_MOVE 
BJ_GAME_PLAY_PLAYER_WIN 
BJ_GAME_PLAY_CPU_WIN 
BJ_GAME_PLAY_PLAYER_CPU_TIE 
BJ_GAME_QUIT 

◆ BLACK_JACK_GUI

Enumerator
BJ_GUI_MENU 
BJ_GUI_START 
BJ_GUI_P1_MOVE 
BJ_GUI_CPU_MOVE 
BJ_GUI_P1_WIN 
BJ_GUI_CPU_WIN 
BJ_GUI_P1_CPU_TIE 
BJ_TOTAL_GUI 

◆ BLACK_JACK_KEYS

Enumerator
BJ_ESC_KEY 
BJ_H_KEY 
BJ_S_KEY 
BJ_TOTAL_KEYS