예제 #1
0
int Settings::getCVar(const std::string& name)
{
	CVar* cvar = cvarlist[name];
	if ( cvar )
		return cvar->getIntValue();
	return 0;
}
예제 #2
0
void Settings::decreaseCVar(const std::string& name, const unsigned int& value)
{
	CVar* cvar = cvarlist[name];
	if ( cvar )
	{
		cvar->decrease(value);

		std::stringstream v;
		v << cvar->getIntValue();
		m_logBuffer->add(name + ": " + v.str());
	}
	else
		BE_LOG( "unknown cvar: '" << name << "'" );
}
예제 #3
0
void Settings::increaseCVar(const std::string& name, const unsigned int& value)
{
	CVar* cvar = cvarlist[name];
	if ( cvar )
	{
		cvar->increase(value);

		std::stringstream v;
		v << cvar->getIntValue();
		m_logBuffer->add(name + ": " + v.str());
	}
	else
		m_logDebug << "::SETTINGS unknown cvar: '" << name << "'\n";
}