ReGameDLL_CS/regamedll/dlls/tutor_base_states.cpp

37 lines
546 B
C++
Raw Normal View History

2015-06-30 12:46:07 +03:00
#include "precompiled.h"
CBaseTutorStateSystem::CBaseTutorStateSystem()
{
2017-10-12 17:50:56 +03:00
m_currentState = nullptr;
2015-06-30 12:46:07 +03:00
}
CBaseTutorStateSystem::~CBaseTutorStateSystem()
2015-06-30 12:46:07 +03:00
{
2015-08-20 13:35:01 +03:00
;
2015-06-30 12:46:07 +03:00
}
2017-10-12 17:50:56 +03:00
TutorStateType CBaseTutorStateSystem::GetCurrentStateType() const
2015-06-30 12:46:07 +03:00
{
if (m_currentState)
2015-08-20 13:35:01 +03:00
{
return m_currentState->GetType();
}
2017-10-12 17:50:56 +03:00
return TUTORSTATE_UNDEFINED;
2015-06-30 12:46:07 +03:00
}
CBaseTutorState::CBaseTutorState()
2015-06-30 12:46:07 +03:00
{
2017-10-12 17:50:56 +03:00
m_type = TUTORSTATE_UNDEFINED;
2015-06-30 12:46:07 +03:00
}
CBaseTutorState::~CBaseTutorState()
2015-06-30 12:46:07 +03:00
{
2015-08-20 13:35:01 +03:00
;
2015-06-30 12:46:07 +03:00
}
2017-10-12 17:50:56 +03:00
TutorStateType CBaseTutorState::GetType() const
2015-06-30 12:46:07 +03:00
{
2015-08-20 13:35:01 +03:00
return m_type;
2015-06-30 12:46:07 +03:00
}