From 18b778662388e98e90b13f28f28a83911ee96e95 Mon Sep 17 00:00:00 2001 From: Aaron Marks Date: Sun, 31 Jul 2005 05:26:08 +0000 Subject: Added beginnings of game core logic and state. Fixed a few problems with SQL queries using different SQL DB backends. I forget everything else. --- src/connectionhandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/connectionhandler.cpp') diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp index 2583e3f..9a58b88 100644 --- a/src/connectionhandler.cpp +++ b/src/connectionhandler.cpp @@ -247,3 +247,15 @@ void ConnectionHandler::registerHandler( { handlers[msgId] = handler; } + +void ConnectionHandler::sendTo(tmwserv::Being *being, MessageOut &msg) +{ + for (NetComputers::iterator i = clients.begin(); + i != clients.end(); + i++) { + if ((*i)->getCharacter() == being) { + (*i)->send(msg.getPacket()); + break; + } + } +} -- cgit