コード例 #1
0
void CCustomDetector::TurnDetectorInternal(bool b)
{
	m_bWorking				= b;
	if(b && m_ui==NULL)
	{
		CreateUI			();
	}else
	{
//.		xr_delete			(m_ui);
	}

	UpdateNightVisionMode	(b);
}
コード例 #2
0
ファイル: CustomDetector.cpp プロジェクト: OLR-xray/XRay-NEW
void CCustomDetector::shedule_Update(u32 dt) 
{
	inherited::shedule_Update	(dt);
	
	if( !IsWorking() ) return;
	if( !H_Parent()  ) return;

	Position().set(H_Parent()->Position());

	Fvector					P; 
	P.set					(H_Parent()->Position());
	feel_touch_update		(P,m_fRadius);

	UpdateNightVisionMode();
}
コード例 #3
0
ファイル: CustomDetector.cpp プロジェクト: OLR-xray/XRay-NEW
void CCustomDetector::TurnOff() 
{
	m_bWorking				= false;
	UpdateMapLocations		();
	UpdateNightVisionMode	();
}