diff options
author | Kahrl <kahrl@gmx.net> | 2011-12-03 09:01:14 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-10 20:11:10 +0200 |
commit | 967f25461bbde28dbc0247fa1c491e9d9938a5b2 (patch) | |
tree | d1e26464862551db3f1d12627cdbe9e31fe211a9 /src/client.h | |
parent | 00536518142a586f3fc51a07f76e12085e3cbd30 (diff) | |
download | minetest-967f25461bbde28dbc0247fa1c491e9d9938a5b2.tar.gz minetest-967f25461bbde28dbc0247fa1c491e9d9938a5b2.tar.bz2 minetest-967f25461bbde28dbc0247fa1c491e9d9938a5b2.zip |
Chat console, including a number of rebases and modifications.
Defaults modified from original: alpha=200, key=F10
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/src/client.h b/src/client.h index efdf315f7..4b16b717c 100644 --- a/src/client.h +++ b/src/client.h @@ -258,6 +258,8 @@ public: // Prints a line or two of info void printDebugInfo(std::ostream &os); + core::list<std::wstring> getConnectedPlayerNames(); + u32 getDayNightRatio(); u16 getHP(); @@ -274,29 +276,8 @@ public: } } - bool getChatMessage(std::wstring &message) - { - if(m_chat_queue.size() == 0) - return false; - message = m_chat_queue.pop_front(); - return true; - } - - void addChatMessage(const std::wstring &message) - { - if (message[0] == L'/') { - m_chat_queue.push_back( - (std::wstring)L"issued command: "+message); - return; - } - - //JMutexAutoLock envlock(m_env_mutex); //bulk comment-out - LocalPlayer *player = m_env.getLocalPlayer(); - assert(player != NULL); - std::wstring name = narrow_to_wide(player->getName()); - m_chat_queue.push_back( - (std::wstring)L"<"+name+L"> "+message); - } + bool getChatMessage(std::wstring &message); + void typeChatMessage(const std::wstring& message); u64 getMapSeed(){ return m_map_seed; } |