Steamhammer/Source/StrategyManager.cpp
void StrategyManager::initializeOpening()
{
	auto buildOrderItr = _strategies.find(Config::Strategy::StrategyName);

	if (buildOrderItr != std::end(_strategies))
	{
		_openingGroup = (*buildOrderItr).second._openingGroup;
	}

    // Is the build a rush build?
    _rushing = 
        Config::Strategy::StrategyName == "9-9Gate" ||
        Config::Strategy::StrategyName == "9-9GateDefensive" ||
        Config::Strategy::StrategyName == "Proxy9-9Gate";

    if (_rushing) Log().Get() << "Enabled rush mode";
}
// Set _openingGroup depending on the current strategy, which in principle
// might be from the config file or from opening learning.
// This is part of initialization; it happens early on.
Set _openingGroup depending on the current strategy, which in principle
might be from the config file or from opening learning.
This is part of initialization; it happens early on.
Set _openingGroup depending on the current strategy which in principle might be from the config file or from opening learning . This is part of initialization ; it happens early on .
void StrategyManager::initializeOpening()
{
	auto buildOrderItr = _strategies.find(Config::Strategy::StrategyName);
	if (buildOrderItr != std::end(_strategies))
	{
		_openingGroup = (*buildOrderItr).second._openingGroup;
	}
    _rushing = 
        Config::Strategy::StrategyName == "9-9Gate" ||
        Config::Strategy::StrategyName == "9-9GateDefensive" ||
        Config::Strategy::StrategyName == "Proxy9-9Gate";
    if (_rushing) Log().Get() << "Enabled rush mode";
}
void StrategyManager :: initializeOpening ( ) { auto buildOrderItr = _strategies . find ( Config :: Strategy :: StrategyName ) ; if ( buildOrderItr != std :: end ( _strategies ) ) { _openingGroup = ( * buildOrderItr ) . second . _openingGroup ; } _rushing = Config :: Strategy :: StrategyName == " " || Config :: Strategy :: StrategyName == " " || Config :: Strategy :: StrategyName == " " ; if ( _rushing ) Log ( ) . Get ( ) << " " ; }
Set _openingGroup depending on the current strategy, which in principle
might be from the config file or from opening learning.
Set _openingGroup depending on the current strategy which in principle might be from the config file or from opening learning .
// Is the build a rush build?