Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
BlackJackGame Class Referenceabstract

#include <BlackJack.h>

Inheritance diagram for BlackJackGame:
BlackJackSDL

Public Member Functions

 BlackJackGame ()
 
virtual ~BlackJackGame ()
 
void Resize (int width, int height)
 
virtual bool GameInitialize (Ult::RenderParams &params)
 
virtual void GameUpdate ()
 
void GameRender ()
 
virtual void GameShutdown ()
 
virtual int EnterGameLoop ()=0
 

Protected Member Functions

void ProcessMainMenu ()
 
void ProcessGameLevel ()
 
void DrawCards ()
 
void DealCards ()
 
int GiveCard ()
 
bool IsCardOut (int suite, int face)
 
void ProcessAI ()
 
void PlayerHit ()
 

Protected Attributes

Ult::OpenGLRenderer mRender
 
Ult::ModelData mCardGeometry
 
Card mCards [BJ_TOTAL_CARDS]
 
Ult::Texture mCardBack
 
Ult::ModelData mBackground
 
Ult::ModelData mGuiElement
 
Ult::Texture mGuiTextures [BJ_TOTAL_GUI]
 
std::vector< int > mPlayerCards
 
std::vector< int > mCpuCards
 
int mPlayerTotal
 
int mCpuTotal
 
bool mCpuStay
 
bool mPlayerStay
 
BLACK_JACK_GAME_STATE mCurrentGameState
 
bool mButtonKeys [BJ_TOTAL_KEYS]
 
bool mQuitDemo
 

Constructor & Destructor Documentation

◆ BlackJackGame()

BlackJackGame::BlackJackGame ( )

◆ ~BlackJackGame()

BlackJackGame::~BlackJackGame ( )
virtual

Member Function Documentation

◆ DealCards()

void BlackJackGame::DealCards ( )
protected

◆ DrawCards()

void BlackJackGame::DrawCards ( )
protected

◆ EnterGameLoop()

virtual int BlackJackGame::EnterGameLoop ( )
pure virtual

Implemented in BlackJackSDL.

◆ GameInitialize()

bool BlackJackGame::GameInitialize ( Ult::RenderParams & params)
virtual

◆ GameRender()

void BlackJackGame::GameRender ( )

◆ GameShutdown()

void BlackJackGame::GameShutdown ( )
virtual

◆ GameUpdate()

void BlackJackGame::GameUpdate ( )
virtual

◆ GiveCard()

int BlackJackGame::GiveCard ( )
protected

◆ IsCardOut()

bool BlackJackGame::IsCardOut ( int suite,
int face )
protected

◆ PlayerHit()

void BlackJackGame::PlayerHit ( )
protected

◆ ProcessAI()

void BlackJackGame::ProcessAI ( )
protected

◆ ProcessGameLevel()

void BlackJackGame::ProcessGameLevel ( )
protected

◆ ProcessMainMenu()

void BlackJackGame::ProcessMainMenu ( )
protected

◆ Resize()

void BlackJackGame::Resize ( int width,
int height )

Member Data Documentation

◆ mBackground

Ult::ModelData BlackJackGame::mBackground
protected

◆ mButtonKeys

bool BlackJackGame::mButtonKeys[BJ_TOTAL_KEYS]
protected

◆ mCardBack

Ult::Texture BlackJackGame::mCardBack
protected

◆ mCardGeometry

Ult::ModelData BlackJackGame::mCardGeometry
protected

◆ mCards

Card BlackJackGame::mCards[BJ_TOTAL_CARDS]
protected

◆ mCpuCards

std::vector<int> BlackJackGame::mCpuCards
protected

◆ mCpuStay

bool BlackJackGame::mCpuStay
protected

◆ mCpuTotal

int BlackJackGame::mCpuTotal
protected

◆ mCurrentGameState

BLACK_JACK_GAME_STATE BlackJackGame::mCurrentGameState
protected

◆ mGuiElement

Ult::ModelData BlackJackGame::mGuiElement
protected

◆ mGuiTextures

Ult::Texture BlackJackGame::mGuiTextures[BJ_TOTAL_GUI]
protected

◆ mPlayerCards

std::vector<int> BlackJackGame::mPlayerCards
protected

◆ mPlayerStay

bool BlackJackGame::mPlayerStay
protected

◆ mPlayerTotal

int BlackJackGame::mPlayerTotal
protected

◆ mQuitDemo

bool BlackJackGame::mQuitDemo
protected

◆ mRender

Ult::OpenGLRenderer BlackJackGame::mRender
protected

The documentation for this class was generated from the following files: