Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 4, 2015, 9:12:21 PM (9 years ago)
Author:
landauf
Message:

merged branch core7 back to trunk

Location:
code/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/chat/ChatHistory.cc

    r9667 r10624  
    2828
    2929#include "ChatHistory.h"
    30 #include "util/ScopedSingletonManager.h"
     30#include "core/singleton/ScopedSingletonIncludes.h"
     31#include "core/ConfigurablePaths.h"
    3132
    3233#ifndef CHATTEST
     
    3435{
    3536  /* singleton */
    36   ManageScopedSingleton( ChatHistory, ScopeID::Root, false );
     37  ManageScopedSingleton( ChatHistory, ScopeID::ROOT, false );
     38
     39  RegisterAbstractClass(ChatHistory).inheritsFrom<ChatListener>();
     40
    3741#endif
    3842
     
    118122     */
    119123#ifndef CHATTEST
    120     this->hist_logfile.open( (PathConfig::getInstance().getLogPathString() +
     124    this->hist_logfile.open( (ConfigurablePaths::getLogPathString() +
    121125      "chatlog.log").c_str(),
    122126      std::fstream::out | std::fstream::app );
  • code/trunk/src/orxonox/chat/ChatHistory.h

    r8858 r10624  
    4141#include "util/Singleton.h"
    4242#include "core/BaseObject.h"
    43 #include "core/PathConfig.h"
    4443#include "chat/ChatListener.h"
    4544#include "infos/PlayerInfo.h"
  • code/trunk/src/orxonox/chat/ChatInputHandler.cc

    r9675 r10624  
    4747#endif
    4848
    49 #include "util/ScopedSingletonManager.h"
     49#include "core/singleton/ScopedSingletonIncludes.h"
    5050#include "core/CoreIncludes.h"
    5151#include "core/GUIManager.h"
    52 #include "core/command/ConsoleCommand.h"
     52#include "core/command/ConsoleCommandIncludes.h"
    5353#include "core/input/InputBuffer.h"
    5454#include "core/input/InputManager.h"
     
    6262{
    6363  /* singleton */
    64   ManageScopedSingleton( ChatInputHandler, ScopeID::Graphics, false );
     64  ManageScopedSingleton( ChatInputHandler, ScopeID::GRAPHICS, false );
    6565
    6666  /* add commands to console */
    6767  SetConsoleCommand( "startchat", &ChatInputHandler::activate_static );
    6868  SetConsoleCommand( "startchat_small", &ChatInputHandler::activate_small_static );
     69
     70  RegisterAbstractClass(ChatInputHandler).inheritsFrom<ChatListener>();
    6971
    7072  /* constructor */
  • code/trunk/src/orxonox/chat/ChatManager.cc

    r9667 r10624  
    3030#include "ChatListener.h"
    3131
    32 #include "util/ScopedSingletonManager.h"
    3332#include "core/CoreIncludes.h"
    34 #include "core/command/ConsoleCommand.h"
     33#include "core/singleton/ScopedSingletonIncludes.h"
     34#include "core/command/ConsoleCommandIncludes.h"
    3535#include "network/Host.h"
    3636
     
    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);
     45
     46    RegisterAbstractClass(ChatManager).inheritsFrom<NetworkChatListener>();
    4547
    4648    ChatManager::ChatManager()
     
    113115    // ChatListener                                                         //
    114116    //////////////////////////////////////////////////////////////////////////
    115     RegisterAbstractClass(ChatListener).inheritsFrom(Class(Listable));
     117    RegisterAbstractClass(ChatListener).inheritsFrom<Listable>();
    116118
    117119    ChatListener::ChatListener()
Note: See TracChangeset for help on using the changeset viewer.