hlsdk-portable/dlls/bot/cs_gamestate.cpp

34 lines
545 B
C++
Raw Normal View History

#include "bot_common.h"
CSGameState::CSGameState(CCSBot *owner)
{
m_owner = owner;
m_isRoundOver = false;
m_validateInterval.Invalidate();
}
// Reset at round start
void CSGameState::Reset()
{
int i;
CCSBotManager *ctrl = TheCSBots();
m_isRoundOver = false;
}
// Update game state based on events we have received
void CSGameState::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)
bool CSGameState::IsRoundOver() const
{
return m_isRoundOver;
}