bool Game::GameInit() { m_autoplay = false; mDemoMode = false; m_isHD = true; m_finalWinValue = 0; m_featureWinValue = 0; m_interimFeatureWinValue = 0; m_interimWinValue = 0; m_deduct = 0; mTargetValue = 0; m_gameStakes.reserve(TOTAL_STAKES); m_gameStakes.push_back(MINIMUM_BET); m_gameStakes.push_back(MAXIMUM_BET); m_currentTotalStake[0] = 0; m_currentTotalStake[1] = 0; m_currentTotalWon[0] = 0; m_currentTotalWon[1] = 0; //Default Stake To Max mStake = m_gameStakes[0]; m_popControl = std::make_shared<PopControl>(); m_popControl->Initialise(m_gameStakes, GetStakeID()); if(GetUsesBackOffice()) { TheAudioManager::Instance()->SetVolume(GetRemoteMasterVolume()); } else { TheAudioManager::Instance()->SetVolume(GetLocalMasterVolume()); } #ifdef SOAK_BUILD TheAudioManager::Instance()->EnableSuperFastPlay(); #endif #ifdef FIXED_POP mStake = FIXED_POP; #endif THE_BUTTONS->Initialise(); POKER_GAME->PokerGameInit(); POKER_GAME->UpdateAwardDigits(); UpdateDigits(); return true; }
CounterFont::CounterFont(int fontAsset, int xLoc, int yLoc) { offset.X(xLoc); offset.Y(yLoc); m_count = 1; numberFont = graphics_engine->CreateSprite1(true,800); numberFont->SetImage(fontAsset); for (int i = 0; i < 3; i++) digits[i] = 0; UpdateDigits(); m_maxDigits = 3; }
void CounterFont::SetCount(int cnt) { m_count = cnt; UpdateDigits(); }