Beispiel #1
0
CMineField::~CMineField()
{
	NotifyAllMinesEvent( eMineGameObjectEvent_UnRegisterListener );
	m_minesData.clear();

	RemoveFromTacticalManager();
}
void CSmartMine::Reset()
{
	m_enabled = true;
	m_trackedEntities.clear();

	RemoveFromTacticalManager();
	StateMachineResetBehavior();
}
void CSmartMine::OnDisabled()
{
	if (!m_enabled)
		return;
	m_enabled = false;
	RemoveFromTacticalManager();
	if (GetGameObject()->GetUpdateSlotEnables( this, SMART_MINE_MAIN_UPDATE_SLOT ) > 0)
	{
		GetGameObject()->DisableUpdateSlot( this, SMART_MINE_MAIN_UPDATE_SLOT );
	}
	GetEntity()->Hide( true );
}
Beispiel #4
0
void CMineField::SetState( const EMineFieldState state, const bool bForce )
{
	if (state != GetState() || bForce)
	{
		m_currentState = state;

		if (state == eMineFieldState_Showing)
		{
			AddToTacticalManager();
		}
		else
		{
			RemoveFromTacticalManager();
		}
	}
}
CSmartMine::~CSmartMine()
{
	StateMachineReleaseBehavior();

	RemoveFromTacticalManager();
}