DayZ 1.24
Loading...
Searching...
No Matches
Bot.c File Reference

Go to the source code of this file.

Classes

class  BotTrigger
 
class  MyBotTrigger
 
class  Bot
 

Functions

void botDebugPrint (string s)
 
void botDebugSpam (string s)
 

Function Documentation

◆ botDebugPrint()

void botDebugPrint ( string s)

Definition at line 182 of file Bot.c.

183{
184#ifdef BOT_DEBUG
185 PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
186#else
187 //Print("" + s); // comment/uncomment to hide/see debug logs
188#endif
189}
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...

References PrintToRPT().

Referenced by BotSelectNearestTarget(), BotGuardBase::GuardCondition(), BotStateBase::OnAbort(), OnEntry(), BotTestSpamUserActions::OnEntry(), BotStateBase::OnEntry(), BotWaitForChangeInHands::OnEntry(), BotTestSpamUserActions_Start::OnExit(), BotStateBase::OnExit(), OnTimeout(), Bot::OnTrigger(), BotStateBase::OnUpdate(), BotTestSwapInternal::OnUpdate(), BotTestSwapInternalC2H::OnUpdate(), OnUpdate(), BotStateBase::SelectTarget(), and Bot::Start().

◆ botDebugSpam()

void botDebugSpam ( string s)

Definition at line 191 of file Bot.c.

192{
193#ifdef BOT_DEBUG_SPAM
194 PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
195#else
196 //Print("" + s); // comment/uncomment to hide/see debug logs
197#endif
198}

References PrintToRPT().

Referenced by BotStateBase::OnTimeout(), BotStateBase::OnUpdate(), and Bot::ProcessEvent().