Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 1, 2009, 11:44:53 AM (15 years ago)
Author:
rgrieder
Message:

Moved the singleton creation/destruction mess to the Core class by using just two possible Scopes:

  • ScopeID::Root for singletons that may always persists
  • ScopeID::Graphics for singletons that only work when graphics was loaded
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/PlayerManager.h

    r5820 r5850  
    3434#include <cassert>
    3535#include <map>
    36 #include "util/Singleton.h"
     36#include "util/ScopedSingleton.h"
    3737#include "network/ClientConnectionListener.h"
    3838
    3939namespace orxonox
    4040{
    41     class _OrxonoxExport PlayerManager : public Singleton<PlayerManager>, public ClientConnectionListener
     41    class _OrxonoxExport PlayerManager : public ScopedSingleton<PlayerManager, ScopeID::Root>, public ClientConnectionListener
    4242    {
    43             friend class Singleton<PlayerManager>;
     43            friend class ScopedSingleton<PlayerManager, ScopeID::Root>;
    4444        public:
    4545            PlayerManager();
Note: See TracChangeset for help on using the changeset viewer.