|
BWAPI
|
#include <Logger.h>
Public Member Functions | |
| LoggerClass () | |
| void | log (const std::string &message, int level=0) |
| LoggerClass::LoggerClass | ( | ) | [inline] |
| void LoggerClass::log | ( | const std::string & | message, |
| int | level = 0 |
||
| ) | [inline] |
Definition at line 46 of file Logger.h.
References BWAPI::Broodwar, BWAPI::Game::getFrameCount(), BWAPI::Game::printf(), and BWAPI::Game::sendText().
{
if(level > 1)
BWAPI::Broodwar->sendText(message.c_str());
else if(level > 0)
BWAPI::Broodwar->printf(message.c_str());
#if _DEBUG
std::ofstream output("bwapi-data\\Skynet\\SkynetLog.txt", std::ios::ate | std::ios::app);
output << BWAPI::Broodwar->getFrameCount() << " : " << message << std::endl;
output.close();
#endif
}

1.7.6.1