/*virtual*/ void CSpammerEnemy::UpdateObjective(float fDt) /*override*/
{
	if (!m_fAttackElapsedTime)
	{
		TurnOffBit(actionBitfield, IS_ATTACKING);
	}

	m_fAttackElapsedTime += fDt;

	if (m_pTarget != nullptr) // this should be the player
	{
		m_vDestination = m_pTarget->GetPosition();

		float distancetoTarget = Length((m_vDestination - GetPosition()));
		bool attack = true;
		if (distancetoTarget < m_fAttackRange)
		{
			DirectX::XMFLOAT3 myVect = m_vDestination - GetPosition();
			TurnToPoint(fDt, myVect, m_fTurningSpeed);
			m_pSppitlePistol->Shoot();
		}
		else
		{
			MakeMovement(fDt);
		}
	}
}
void HexGame::EventsPlaying()
{
	MakeMovement();
}