This commit is contained in:
Paul 2001-02-26 20:42:25 +00:00
parent 90194896f7
commit 25ce2449ae
24 changed files with 84 additions and 108 deletions

View file

@ -45,6 +45,7 @@
---- */
CThing *CThingManager::s_thingLists[CThing::MAX_TYPE]={NULL,NULL};
int CThingManager::s_initialised=false;
/*----------------------------------------------------------------------
@ -57,10 +58,12 @@ void CThingManager::init()
{
int i;
ASSERT(!s_initialised);
for(i=0;i<CThing::MAX_TYPE;i++)
{
s_thingLists[i]=NULL;
}
s_initialised=true;
}
/*----------------------------------------------------------------------
@ -74,6 +77,7 @@ void CThingManager::shutdown()
int i;
CThing *thing;
ASSERT(!s_initialised);
for(i=0;i<CThing::MAX_TYPE;i++)
{
while(s_thingLists[i])
@ -83,6 +87,7 @@ void CThingManager::shutdown()
delete thing;
}
}
s_initialised=false;
}
/*----------------------------------------------------------------------