Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 12:13:34 AM (9 years ago)
Author:
landauf
Message:

define ScopeID as integer constants instead of an enum. this allows to extend it and add new scopes outside of core.

Location:
code/branches/core7/src/orxonox
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/orxonox/CameraManager.cc

    r10459 r10464  
    4444namespace orxonox
    4545{
    46     ManageScopedSingleton(CameraManager, ScopeID::Graphics, false);
     46    ManageScopedSingleton(CameraManager, ScopeID::GRAPHICS, false);
    4747
    4848    CameraManager::CameraManager()
  • code/branches/core7/src/orxonox/LevelManager.cc

    r10459 r10464  
    5151    SetCommandLineArgument(level, "").shortcut("l").information("Default level file (overrides LevelManager::defaultLevelName_ configValue)");
    5252
    53     ManageScopedSingleton(LevelManager, ScopeID::Root, false);
     53    ManageScopedSingleton(LevelManager, ScopeID::ROOT, false);
    5454
    5555    RegisterAbstractClass(LevelManager).inheritsFrom<Configurable>();
  • code/branches/core7/src/orxonox/MoodManager.cc

    r10459 r10464  
    3636namespace orxonox
    3737{
    38     ManageScopedSingleton(MoodManager, ScopeID::Root, false);
     38    ManageScopedSingleton(MoodManager, ScopeID::ROOT, false);
    3939
    4040    // Note: I'm (Kevin Young) not entirely sure whether that's good code style:
  • code/branches/core7/src/orxonox/PlayerManager.cc

    r10459 r10464  
    3939namespace orxonox
    4040{
    41     ManageScopedSingleton(PlayerManager, ScopeID::Root, false);
     41    ManageScopedSingleton(PlayerManager, ScopeID::ROOT, false);
    4242
    4343    RegisterAbstractClass(PlayerManager).inheritsFrom<ClientConnectionListener>();
  • code/branches/core7/src/orxonox/chat/ChatHistory.cc

    r10459 r10464  
    3434{
    3535  /* singleton */
    36   ManageScopedSingleton( ChatHistory, ScopeID::Root, false );
     36  ManageScopedSingleton( ChatHistory, ScopeID::ROOT, false );
    3737
    3838  RegisterAbstractClass(ChatHistory).inheritsFrom<ChatListener>();
  • code/branches/core7/src/orxonox/chat/ChatInputHandler.cc

    r10459 r10464  
    6262{
    6363  /* singleton */
    64   ManageScopedSingleton( ChatInputHandler, ScopeID::Graphics, false );
     64  ManageScopedSingleton( ChatInputHandler, ScopeID::GRAPHICS, false );
    6565
    6666  /* add commands to console */
  • code/branches/core7/src/orxonox/chat/ChatManager.cc

    r10459 r10464  
    4040namespace orxonox
    4141{
    42     ManageScopedSingleton(ChatManager, ScopeID::Root, false);
     42    ManageScopedSingleton(ChatManager, ScopeID::ROOT, false);
    4343
    4444    SetConsoleCommand("chat", &ChatManager::chat).defaultValue(1, NETWORK_PEER_ID_BROADCAST);
  • code/branches/core7/src/orxonox/overlays/InGameConsole.cc

    r10459 r10464  
    6565    SetConsoleCommand("InGameConsole", "closeConsole", &InGameConsole::closeConsole);
    6666
    67     ManageScopedSingleton(InGameConsole, ScopeID::Graphics, false);
     67    ManageScopedSingleton(InGameConsole, ScopeID::GRAPHICS, false);
    6868
    6969    RegisterAbstractClass(InGameConsole).inheritsFrom<WindowEventListener>().inheritsFrom<UpdateListener>();
  • code/branches/core7/src/orxonox/sound/SoundManager.cc

    r10459 r10464  
    5050namespace orxonox
    5151{
    52     ManageScopedSingleton(SoundManager, ScopeID::Graphics, true);
     52    ManageScopedSingleton(SoundManager, ScopeID::GRAPHICS, true);
    5353
    5454    std::string SoundManager::getALErrorString(ALenum code)
Note: See TracChangeset for help on using the changeset viewer.