hlsdk-portable/dlls/bot/hl_gamestate.cpp

34 lines
550 B
C++
Raw Normal View History

#include "bot_common.h"
2017-01-09 22:48:20 +00:00
CHLGameState::CHLGameState(CHLBot *owner)
{
m_owner = owner;
m_isRoundOver = false;
m_validateInterval.Invalidate();
}
// Reset at round start
2017-01-09 22:48:20 +00:00
void CHLGameState::Reset()
{
int i;
2017-01-09 22:48:20 +00:00
CHLBotManager *ctrl = TheCSBots();
m_isRoundOver = false;
}
// Update game state based on events we have received
2017-01-09 22:48:20 +00:00
void CHLGameState::OnEvent(GameEventType event, CBaseEntity *entity, CBaseEntity *other)
{
2017-01-09 22:35:08 +00:00
}
// True if round has been won or lost (but not yet reset)
2017-01-09 22:48:20 +00:00
bool CHLGameState::IsRoundOver() const
{
return m_isRoundOver;
}