Changeset 10624 for code/trunk/src/orxonox/chat
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/orxonox/chat/ChatHistory.cc
r9667 r10624 28 28 29 29 #include "ChatHistory.h" 30 #include "util/ScopedSingletonManager.h" 30 #include "core/singleton/ScopedSingletonIncludes.h" 31 #include "core/ConfigurablePaths.h" 31 32 32 33 #ifndef CHATTEST … … 34 35 { 35 36 /* singleton */ 36 ManageScopedSingleton( ChatHistory, ScopeID::Root, false ); 37 ManageScopedSingleton( ChatHistory, ScopeID::ROOT, false ); 38 39 RegisterAbstractClass(ChatHistory).inheritsFrom<ChatListener>(); 40 37 41 #endif 38 42 … … 118 122 */ 119 123 #ifndef CHATTEST 120 this->hist_logfile.open( ( PathConfig::getInstance().getLogPathString() +124 this->hist_logfile.open( (ConfigurablePaths::getLogPathString() + 121 125 "chatlog.log").c_str(), 122 126 std::fstream::out | std::fstream::app ); -
code/trunk/src/orxonox/chat/ChatHistory.h
r8858 r10624 41 41 #include "util/Singleton.h" 42 42 #include "core/BaseObject.h" 43 #include "core/PathConfig.h"44 43 #include "chat/ChatListener.h" 45 44 #include "infos/PlayerInfo.h" -
code/trunk/src/orxonox/chat/ChatInputHandler.cc
r9675 r10624 47 47 #endif 48 48 49 #include " util/ScopedSingletonManager.h"49 #include "core/singleton/ScopedSingletonIncludes.h" 50 50 #include "core/CoreIncludes.h" 51 51 #include "core/GUIManager.h" 52 #include "core/command/ConsoleCommand .h"52 #include "core/command/ConsoleCommandIncludes.h" 53 53 #include "core/input/InputBuffer.h" 54 54 #include "core/input/InputManager.h" … … 62 62 { 63 63 /* singleton */ 64 ManageScopedSingleton( ChatInputHandler, ScopeID::G raphics, false );64 ManageScopedSingleton( ChatInputHandler, ScopeID::GRAPHICS, false ); 65 65 66 66 /* add commands to console */ 67 67 SetConsoleCommand( "startchat", &ChatInputHandler::activate_static ); 68 68 SetConsoleCommand( "startchat_small", &ChatInputHandler::activate_small_static ); 69 70 RegisterAbstractClass(ChatInputHandler).inheritsFrom<ChatListener>(); 69 71 70 72 /* constructor */ -
code/trunk/src/orxonox/chat/ChatManager.cc
r9667 r10624 30 30 #include "ChatListener.h" 31 31 32 #include "util/ScopedSingletonManager.h"33 32 #include "core/CoreIncludes.h" 34 #include "core/command/ConsoleCommand.h" 33 #include "core/singleton/ScopedSingletonIncludes.h" 34 #include "core/command/ConsoleCommandIncludes.h" 35 35 #include "network/Host.h" 36 36 … … 40 40 namespace orxonox 41 41 { 42 ManageScopedSingleton(ChatManager, ScopeID::R oot, false);42 ManageScopedSingleton(ChatManager, ScopeID::ROOT, false); 43 43 44 44 SetConsoleCommand("chat", &ChatManager::chat).defaultValue(1, NETWORK_PEER_ID_BROADCAST); 45 46 RegisterAbstractClass(ChatManager).inheritsFrom<NetworkChatListener>(); 45 47 46 48 ChatManager::ChatManager() … … 113 115 // ChatListener // 114 116 ////////////////////////////////////////////////////////////////////////// 115 RegisterAbstractClass(ChatListener).inheritsFrom (Class(Listable));117 RegisterAbstractClass(ChatListener).inheritsFrom<Listable>(); 116 118 117 119 ChatListener::ChatListener()
Note: See TracChangeset
for help on using the changeset viewer.