ReGameDLL_CS/regamedll/dlls/tutor_base_states.cpp

61 lines
2.2 KiB
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
}
const char *CBaseTutorState::m_TutorStateStrings[] =
{
"#Cstrike_TutorState_Undefined", // TUTORSTATE_UNDEFINED
"#Cstrike_TutorState_Looking_For_Hostage", // TUTORSTATE_LOOKING_FOR_HOSTAGE
"#Cstrike_TutorState_Escorting_Hostage", // TUTORSTATE_ESCORTING_HOSTAGE
"#Cstrike_TutorState_Following_Hostage_Escort", // TUTORSTATE_FOLLOWING_HOSTAGE_ESCORT
"#Cstrike_TutorState_Moving_To_Bombsite", // TUTORSTATE_MOVING_TO_BOMBSITE,
"#Cstrike_TutorState_Looking_For_Bomb_Carrier", // TUTORSTATE_LOOKING_FOR_BOMB_CARRIER
"#Cstrike_TutorState_Guarding_Loose_Bomb", // TUTORSTATE_GUARDING_LOOSE_BOMB
"#Cstrike_TutorState_Defusing_Bomb", // TUTORSTATE_DEFUSING_BOMB
"#Cstrike_TutorState_Guarding_Hostage", // TUTORSTATE_GUARDING_HOSTAGE
"#Cstrike_TutorState_Moving_To_Intercept_Enemy", // TUTORSTATE_MOVING_TO_INTERCEPT_ENEMY
"#Cstrike_TutorState_Looking_For_Hostage_Escort", // TUTORSTATE_LOOKING_FOR_HOSTAGE_ESCORT
"#Cstrike_TutorState_Attacking_Hostage_Escort", // TUTORSTATE_ATTACKING_HOSTAGE_ESCORT
"#Cstrike_TutorState_Escorting_Bomb_Carrier", // TUTORSTATE_ESCORTING_BOMB_CARRIER
"#Cstrike_TutorState_Moving_To_Bomb_Site", // TUTORSTATE_MOVING_TO_BOMB_SITE
"#Cstrike_TutorState_Planting_Bomb", // TUTORSTATE_PLANTING_BOMB
"#Cstrike_TutorState_Guarding_Bomb", // TUTORSTATE_GUARDING_BOMB
"#Cstrike_TutorState_Looking_For_Loose_Bomb", // TUTORSTATE_LOOKING_FOR_LOOSE_BOMB
"#Cstrike_TutorState_Running_Away_From_Ticking_Bomb", // TUTORSTATE_RUNNING_AWAY_FROM_TICKING_BOMB
"#Cstrike_TutorState_Buy_Time", // TUTORSTATE_BUYTIME
"#Cstrike_TutorState_Waiting_For_Start" // TUTORSTATE_WAITING_FOR_START
};
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
}