Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 23, 2010, 6:50:22 PM (14 years ago)
Author:
landauf
Message:

moved ScopedSingletonManager to util

Location:
code/branches/consolecommands3/src
Files:
20 edited
2 moved

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/CMakeLists.txt

    r7202 r7207  
    3535  OrxonoxClass.cc
    3636  Resource.cc
    37   ScopedSingletonManager.cc
    3837  WindowEventListener.cc
    3938
  • code/branches/consolecommands3/src/libraries/core/Core.cc

    r7204 r7207  
    5252#include "util/Exception.h"
    5353#include "util/Scope.h"
     54#include "util/ScopedSingletonManager.h"
    5455#include "util/SignalHandler.h"
    5556#include "PathConfig.h"
     
    6566#include "Language.h"
    6667#include "LuaState.h"
    67 #include "ScopedSingletonManager.h"
    6868#include "command/CommandExecutor.h"
    6969#include "command/IOConsole.h"
  • code/branches/consolecommands3/src/libraries/core/input/KeyBinderManager.cc

    r7204 r7207  
    3131#include "util/Debug.h"
    3232#include "util/Exception.h"
     33#include "util/ScopedSingletonManager.h"
    3334#include "core/ConfigValueIncludes.h"
    3435#include "core/CoreIncludes.h"
    3536#include "core/LuaState.h"
    36 #include "core/ScopedSingletonManager.h"
    3737#include "core/command/ConsoleCommand.h"
    3838#include "InputManager.h"
  • code/branches/consolecommands3/src/libraries/core/input/KeyDetector.cc

    r7204 r7207  
    2929#include "KeyDetector.h"
    3030
     31#include "util/ScopedSingletonManager.h"
    3132#include "core/CoreIncludes.h"
    32 #include "core/ScopedSingletonManager.h"
    3333#include "core/command/ConsoleCommand.h"
    3434#include "Button.h"
  • code/branches/consolecommands3/src/libraries/network/Client.cc

    r7163 r7207  
    4545#include "util/Clock.h"
    4646#include "util/Debug.h"
     47#include "util/ScopedSingletonManager.h"
    4748#include "synchronisable/Synchronisable.h"
    4849#include "packet/Chat.h"
     
    5253#include "core/CommandLineParser.h"
    5354#include "core/Game.h"
    54 #include "core/ScopedSingletonManager.h"
    5555
    5656namespace orxonox
     
    107107    return ClientConnection::closeConnection();
    108108  }
    109  
     109
    110110  void Client::setDestination(const std::string& serverAddress, unsigned int port)
    111111  {
  • code/branches/consolecommands3/src/libraries/network/LANDiscovery.cc

    r7163 r7207  
    3232#include <cstring>
    3333
     34#include "util/ScopedSingletonManager.h"
    3435#include "core/CoreIncludes.h"
    35 #include "core/ScopedSingletonManager.h"
    3636
    3737
    3838namespace orxonox
    39 { 
     39{
    4040  ManageScopedSingleton(LANDiscovery, ScopeID::Root, true);
    41  
     41
    4242  LANDiscovery::LANDiscovery()
    4343  {
     
    4949    enet_host_destroy(this->host_);
    5050  }
    51  
     51
    5252  void LANDiscovery::discover()
    5353  {
     
    5656    enet_address_set_host(&address, "255.255.255.255");
    5757    address.port = LAN_DISCOVERY_PORT;
    58    
     58
    5959    ENetPeer* peer;
    6060    peer = enet_host_connect(this->host_, &address, 0);
    61    
     61
    6262    ENetEvent event;
    6363    while( enet_host_service(this->host_, &event, 1000 ) )
     
    9393    }
    9494  }
    95  
     95
    9696  std::string LANDiscovery::getServerListItemName(unsigned int index)
    9797  {
     
    101101      return this->servers_[index].getServerName();
    102102  }
    103  
     103
    104104  std::string LANDiscovery::getServerListItemIP(unsigned int index)
    105105  {
     
    109109      return this->servers_[index].getServerIP();
    110110  }
    111  
    112  
     111
     112
    113113} // namespace orxonox
  • code/branches/consolecommands3/src/libraries/util/CMakeLists.txt

    r7163 r7207  
    3131  ExprParser.cc
    3232  OutputHandler.cc
     33  ScopedSingletonManager.cc
    3334  SignalHandler.cc
    3435  Sleep.cc
  • code/branches/consolecommands3/src/libraries/util/ScopedSingletonManager.h

    r7203 r7207  
    3030#define __ScopedSingletonManager_H__
    3131
    32 #include "CorePrereqs.h"
     32#include "UtilPrereqs.h"
    3333
    3434#include <cassert>
     
    4444namespace orxonox
    4545{
    46     class _CoreExport ScopedSingletonManager
     46    class OrxonoxClass;
     47
     48    class _UtilExport ScopedSingletonManager
    4749    {
    4850        public:
  • code/branches/consolecommands3/src/modules/designtools/ScreenshotManager.cc

    r7204 r7207  
    99#include <OgreRoot.h>
    1010
     11#include "util/ScopedSingletonManager.h"
    1112#include "core/GraphicsManager.h"
    1213#include "core/PathConfig.h"
    13 #include "core/ScopedSingletonManager.h"
    1414#include "core/command/ConsoleCommand.h"
    1515
  • code/branches/consolecommands3/src/modules/designtools/SkyboxGenerator.cc

    r7204 r7207  
    3434#include <OgreCamera.h>
    3535
     36#include "util/ScopedSingletonManager.h"
    3637#include "core/CoreIncludes.h"
    3738#include "core/ConfigValueIncludes.h"
    3839#include "core/GraphicsManager.h"
    39 #include "core/ScopedSingletonManager.h"
    4040#include "core/command/ConsoleCommand.h"
    4141#include "core/command/CommandExecutor.h"
  • code/branches/consolecommands3/src/modules/notifications/NotificationManager.cc

    r7163 r7207  
    3636#include <set>
    3737
     38#include "util/ScopedSingletonManager.h"
    3839#include "core/CoreIncludes.h"
    39 #include "core/ScopedSingletonManager.h"
    4040#include "Notification.h"
    4141#include "interfaces/NotificationListener.h"
  • code/branches/consolecommands3/src/modules/pickup/PickupManager.cc

    r7163 r7207  
    3434#include "PickupManager.h"
    3535
     36#include "util/Convert.h"
     37#include "util/ScopedSingletonManager.h"
    3638#include "core/CoreIncludes.h"
    3739#include "core/LuaState.h"
    3840#include "core/GUIManager.h"
    39 #include "core/ScopedSingletonManager.h"
    4041#include "core/Identifier.h"
    41 #include "util/Convert.h"
    4242#include "interfaces/PickupCarrier.h"
    4343#include "infos/PlayerInfo.h"
  • code/branches/consolecommands3/src/modules/questsystem/QuestManager.cc

    r7204 r7207  
    3737
    3838#include "util/Exception.h"
     39#include "util/ScopedSingletonManager.h"
    3940#include "core/CoreIncludes.h"
    4041#include "core/GUIManager.h"
    4142#include "core/LuaState.h"
    42 #include "core/ScopedSingletonManager.h"
    4343#include "core/command/ConsoleCommand.h"
    4444#include "infos/PlayerInfo.h"
  • code/branches/consolecommands3/src/orxonox/CameraManager.cc

    r6417 r7207  
    3434
    3535#include "util/StringUtils.h"
     36#include "util/ScopedSingletonManager.h"
    3637#include "core/GameMode.h"
    3738#include "core/GraphicsManager.h"
    3839#include "core/GUIManager.h"
    3940#include "core/ObjectList.h"
    40 #include "core/ScopedSingletonManager.h"
    4141#include "tools/Shader.h"
    4242#include "graphics/Camera.h"
  • code/branches/consolecommands3/src/orxonox/ChatHistory.cc

    r7163 r7207  
    2828
    2929#include "ChatHistory.h"
    30 #include <core/ScopedSingletonManager.h>
     30#include "util/ScopedSingletonManager.h"
    3131
    3232#ifndef CHATTEST
  • code/branches/consolecommands3/src/orxonox/ChatInputHandler.cc

    r7204 r7207  
    2828
    2929#include "ChatInputHandler.h"
    30 #include <core/ScopedSingletonManager.h>
     30#include "util/ScopedSingletonManager.h"
    3131#include "core/CoreIncludes.h"
    3232#include "core/GUIManager.h"
  • code/branches/consolecommands3/src/orxonox/LevelManager.cc

    r7163 r7207  
    3131#include <map>
    3232
     33#include "util/ScopedSingletonManager.h"
    3334#include "core/CommandLineParser.h"
    3435#include "core/ConfigValueIncludes.h"
     
    3637#include "core/Loader.h"
    3738#include "core/Resource.h"
    38 #include "core/ScopedSingletonManager.h"
    3939#include "PlayerManager.h"
    4040#include "Level.h"
  • code/branches/consolecommands3/src/orxonox/MoodManager.cc

    r7163 r7207  
    2929#include "MoodManager.h"
    3030
     31#include "util/ScopedSingletonManager.h"
    3132#include "core/ConfigValueIncludes.h"
    3233#include "core/CoreIncludes.h"
    33 #include "core/ScopedSingletonManager.h"
    3434#include "core/Resource.h"
    3535
     
    4848        // Need to use a variable to store old data because ResetConfigValues() doesn't seem to work.
    4949        oldMood_ = MoodManager::defaultMood_;
    50        
     50
    5151        // Checking for the existence of the folder for the default mood
    5252        const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/.";
  • code/branches/consolecommands3/src/orxonox/PlayerManager.cc

    r6746 r7207  
    2929#include "PlayerManager.h"
    3030
     31#include "util/ScopedSingletonManager.h"
    3132#include "core/CoreIncludes.h"
    3233#include "core/GameMode.h"
    33 #include "core/ScopedSingletonManager.h"
    3434#include "Level.h"
    3535#include "infos/HumanPlayer.h"
  • code/branches/consolecommands3/src/orxonox/overlays/InGameConsole.cc

    r7204 r7207  
    4545#include "util/Math.h"
    4646#include "util/DisplayStringConversions.h"
     47#include "util/ScopedSingletonManager.h"
    4748#include "core/CoreIncludes.h"
    4849#include "core/ConfigValueIncludes.h"
    49 #include "core/ScopedSingletonManager.h"
    5050#include "core/command/ConsoleCommand.h"
    5151#include "core/input/InputManager.h"
  • code/branches/consolecommands3/src/orxonox/sound/SoundManager.cc

    r7174 r7207  
    3838#include "util/ScopeGuard.h"
    3939#include "util/Clock.h"
     40#include "util/ScopedSingletonManager.h"
    4041#include "core/ConfigValueIncludes.h"
    4142#include "core/CoreIncludes.h"
    4243#include "core/GameMode.h"
    43 #include "core/ScopedSingletonManager.h"
    4444#include "core/Resource.h"
    4545#include "SoundBuffer.h"
Note: See TracChangeset for help on using the changeset viewer.