mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-28 01:56:24 +00:00
Rename CSheets in GPM to CGpmSheets
This commit is contained in:
parent
3ca87bf1ca
commit
7461941139
5 changed files with 13 additions and 13 deletions
|
@ -298,7 +298,7 @@ void CGlobalPositionManagerService::init()
|
||||||
GET_VAR_FROM_CF(LoadPacsPrims, true);
|
GET_VAR_FROM_CF(LoadPacsPrims, true);
|
||||||
|
|
||||||
|
|
||||||
CSheets::init();
|
CGpmSheets::init();
|
||||||
|
|
||||||
// World Position Manager init
|
// World Position Manager init
|
||||||
if (!IsRingShard)
|
if (!IsRingShard)
|
||||||
|
@ -707,7 +707,7 @@ void CGlobalPositionManagerService::release()
|
||||||
CWorldPositionManager::release();
|
CWorldPositionManager::release();
|
||||||
}
|
}
|
||||||
|
|
||||||
CSheets::release();
|
CGpmSheets::release();
|
||||||
|
|
||||||
}// release //
|
}// release //
|
||||||
|
|
||||||
|
|
|
@ -45,14 +45,14 @@ using namespace NLGEORGES;
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
// the singleton data
|
// the singleton data
|
||||||
|
|
||||||
std::map<CSheetId,CSheets::CSheet> CSheets::_sheets;
|
std::map<CSheetId,CGpmSheets::CSheet> CGpmSheets::_sheets;
|
||||||
bool CSheets::_initialised=false;
|
bool CGpmSheets::_initialised=false;
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
// init
|
// init
|
||||||
|
|
||||||
void CSheets::init()
|
void CGpmSheets::init()
|
||||||
{
|
{
|
||||||
if (_initialised)
|
if (_initialised)
|
||||||
return;
|
return;
|
||||||
|
@ -72,11 +72,11 @@ void CSheets::init()
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
// display
|
// display
|
||||||
|
|
||||||
void CSheets::display()
|
void CGpmSheets::display()
|
||||||
{
|
{
|
||||||
nlassert(_initialised);
|
nlassert(_initialised);
|
||||||
|
|
||||||
std::map<CSheetId,CSheets::CSheet>::iterator it;
|
std::map<CSheetId,CGpmSheets::CSheet>::iterator it;
|
||||||
for(it=_sheets.begin();it!=_sheets.end();++it)
|
for(it=_sheets.begin();it!=_sheets.end();++it)
|
||||||
{
|
{
|
||||||
nlinfo("SHEET:%s Walk:%f Run:%f Radius:%f Height:%f Bounding:%f Scale:%f",(*it).first.toString().c_str(),
|
nlinfo("SHEET:%s Walk:%f Run:%f Radius:%f Height:%f Bounding:%f Scale:%f",(*it).first.toString().c_str(),
|
||||||
|
@ -88,12 +88,12 @@ void CSheets::display()
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
// lookup
|
// lookup
|
||||||
|
|
||||||
const CSheets::CSheet *CSheets::lookup( CSheetId id )
|
const CGpmSheets::CSheet *CGpmSheets::lookup( CSheetId id )
|
||||||
{
|
{
|
||||||
nlassert(_initialised);
|
nlassert(_initialised);
|
||||||
|
|
||||||
// setup an iterator and lookup the sheet id in the map
|
// setup an iterator and lookup the sheet id in the map
|
||||||
std::map<CSheetId,CSheets::CSheet>::iterator it;
|
std::map<CSheetId,CGpmSheets::CSheet>::iterator it;
|
||||||
it=_sheets.find(id);
|
it=_sheets.find(id);
|
||||||
|
|
||||||
// if we found a valid entry return a pointer to the creature record otherwise 0
|
// if we found a valid entry return a pointer to the creature record otherwise 0
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
* \author Nevrax France
|
* \author Nevrax France
|
||||||
* \date 2002
|
* \date 2002
|
||||||
*/
|
*/
|
||||||
class CSheets
|
class CGpmSheets
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
class CSheet
|
class CSheet
|
||||||
|
@ -85,7 +85,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// prohibit cnstructor as this is a singleton
|
// prohibit cnstructor as this is a singleton
|
||||||
CSheets();
|
CGpmSheets();
|
||||||
|
|
||||||
static std::map<NLMISC::CSheetId,CSheet> _sheets;
|
static std::map<NLMISC::CSheetId,CSheet> _sheets;
|
||||||
static bool _initialised;
|
static bool _initialised;
|
||||||
|
|
|
@ -309,7 +309,7 @@ void CWorldEntity::createPrimitive(NLPACS::UMoveContainer *pMoveContainer, uint8
|
||||||
Primitive = NULL;
|
Primitive = NULL;
|
||||||
MoveContainer = NULL;
|
MoveContainer = NULL;
|
||||||
|
|
||||||
const CSheets::CSheet *sheet = CSheets::lookup(CSheetId(Sheet()));
|
const CGpmSheets::CSheet *sheet = CGpmSheets::lookup(CSheetId(Sheet()));
|
||||||
|
|
||||||
float primRadius = 0.5f;
|
float primRadius = 0.5f;
|
||||||
float primHeight = 2.0f;
|
float primHeight = 2.0f;
|
||||||
|
|
|
@ -113,7 +113,7 @@ int main(int nNbArg, char **ppArgs)
|
||||||
|
|
||||||
// GPMS
|
// GPMS
|
||||||
{
|
{
|
||||||
std::map<NLMISC::CSheetId, CSheets::CSheet> container;
|
std::map<NLMISC::CSheetId, CGpmSheets::CSheet> container;
|
||||||
std::vector<std::string> filters;
|
std::vector<std::string> filters;
|
||||||
filters.push_back("creature");
|
filters.push_back("creature");
|
||||||
filters.push_back("player");
|
filters.push_back("player");
|
||||||
|
|
Loading…
Reference in a new issue