Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-05 10:17:39 +0000
committerStijn Buys <ingar@osirion.org>2008-07-05 10:17:39 +0000
commite5aada2bf01e51753829215c0a3035aa8bd8135a (patch)
tree65d7f5145334db1be780f177b93feb054f35cc82 /src/core/gameconnection.cc
parent68e4bbe3153f45139031a614541b2ccd80dd5526 (diff)
ncurses updates, refactored say
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r--src/core/gameconnection.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/gameconnection.cc b/src/core/gameconnection.cc
index 6090a52..4d2a745 100644
--- a/src/core/gameconnection.cc
+++ b/src/core/gameconnection.cc
@@ -68,7 +68,6 @@ void GameConnection::abort()
void GameConnection::forward(std::string const &cmdline)
{
-
if (!connection_network->connected())
return;
@@ -78,6 +77,17 @@ void GameConnection::forward(std::string const &cmdline)
connection_network->send(netmessage);
}
+void GameConnection::say(std::string const &args)
+{
+ if (!connection_network->connected())
+ return;
+
+ std::string netmessage("say ");
+ netmessage.append(args);
+ netmessage += '\n';
+ connection_network->send(netmessage);
+}
+
void GameConnection::frame(float seconds)
{
if (!running())