Sources/CryGame C++/Solution1/CryGame/XArea.cpp
//////////////////////////////////////////////////////////////////////////
//	adding area SPHERE
// center			- pos of center of sphere
// radius			-	radius of the sphere
// names	- attached entities names
// width			-	fade width (m_Proximity), from border to withing 
//////////////////////////////////////////////////////////////////////////

adding area SPHERE
center                 - pos of center of sphere
radius                 -       radius of the sphere
names  - attached entities names
width                  -       fade width (m_Proximity), from border to withing
adding area SPHERE center - pos of center of sphere radius - radius of the sphere names - attached entities names width - fade width ( m_Proximity ) from border to withing
CXArea*	CXAreaMgr::AddArea(const Vec3d& center, const float radius, const std::vector<string> &names, 
													const int id, const int groupId, const float width)
{
	CXArea	*newArea;
	if(radius<=0)
		return NULL;
	newArea = new CXArea;
	newArea->SetCenter( center );
	newArea->SetRadius( radius );
	newArea->SetID(id);
	newArea->SetGroup(groupId);
	newArea->SetAreaType( CXArea::ATP_SPHERE );
	newArea->AddEntites( names );
	newArea->SetProximity( width );
	m_vpAreas.push_back( newArea );
	return newArea;
}
CXArea * CXAreaMgr :: AddArea ( const Vec3d & center , const float radius , const std :: vector < string > & names , const int id , const int groupId , const float width ) { CXArea * newArea ; if ( radius <= 0 ) return NULL ; newArea = new CXArea ; newArea -> SetCenter ( center ) ; newArea -> SetRadius ( radius ) ; newArea -> SetID ( id ) ; newArea -> SetGroup ( groupId ) ; newArea -> SetAreaType ( CXArea :: ATP_SPHERE ) ; newArea -> AddEntites ( names ) ; newArea -> SetProximity ( width ) ; m_vpAreas . push_back ( newArea ) ; return newArea ; }
adding area SPHERE
center                 - pos of center of sphere
radius                 -       radius of the sphere
names  - attached entities names
width                  -       fade width (m_Proximity), from border to withing
adding area SPHERE center - pos of center of sphere radius - radius of the sphere names - attached entities names width - fade width ( m_Proximity ) from border to withing