timedFlagOnSpawn.cpp
// Safely try to load flag definitions into our vector
Safely try to load flag definitions into our vector
Safely try to load flag definitions into our vector
void timedFlagOnSpawn::tryParseFlagDefinition (std::string definition)
{
    try
    {
        FlagDefinition def = parseFlagDefinition(definition.c_str());
        flagDefinitions.push_back(def);
    }
    catch (const std::runtime_error &e)
    {
        bz_debugMessagef(0, "ERROR :: timedFlagOnSpawn :: A flag definition syntax is as follows: <flag abbr>=<time in seconds>");
        bz_debugMessagef(0, "ERROR :: timedFlagOnSpawn ::     error found in: %s", definition.c_str());
    }
    catch (const std::exception &e)
    {
        bz_debugMessagef(0, "ERROR :: timedFlagOnSpawn :: The time delay for flags being take must be an integer");
        bz_debugMessagef(0, "ERROR :: timedFlagOnSpawn ::     got the following error: %s", e.what());
    }
}
void timedFlagOnSpawn :: tryParseFlagDefinition ( std :: string definition ) { try { FlagDefinition def = parseFlagDefinition ( definition . c_str ( ) ) ; flagDefinitions . push_back ( def ) ; } catch ( const std :: runtime_error & e ) { bz_debugMessagef ( 0 , " " ) ; bz_debugMessagef ( 0 , " " , definition . c_str ( ) ) ; } catch ( const std :: exception & e ) { bz_debugMessagef ( 0 , " " ) ; bz_debugMessagef ( 0 , " " , e . what ( ) ) ; } }
Safely try to load flag definitions into our vector
Safely try to load flag definitions into our vector