move global StageStats into a singleton

This commit is contained in:
Chris Danford
2005-02-16 03:25:45 +00:00
parent 6cb8d3fe64
commit bb712884bb
30 changed files with 421 additions and 300 deletions
+3
View File
@@ -63,6 +63,7 @@
#include "CryptManager.h"
#include "NetworkSyncManager.h"
#include "MessageManager.h"
#include "StatsManager.h"
#if defined(XBOX)
#include "Archutils/Xbox/VirtualMemory.h"
@@ -178,6 +179,7 @@ void ShutdownGame()
SOUNDMAN->Shutdown();
SAFE_DELETE( SCREENMAN );
SAFE_DELETE( STATSMAN );
SAFE_DELETE( MESSAGEMAN );
SAFE_DELETE( NSMAN );
/* Delete INPUTMAN before the other INPUTFILTER handlers, or an input
@@ -1088,6 +1090,7 @@ int main(int argc, char* argv[])
UNLOCKMAN = new UnlockSystem;
NSMAN = new NetworkSyncManager( loading_window );
MESSAGEMAN = new MessageManager;
STATSMAN = new StatsManager;
// UGLY: Reload the current theme now that all global singletons are
// constructed so that they can be registered with Lua.