diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-06 08:12:03 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-06 08:14:37 -0600 |
commit | ffe62a721cf3c17b815da591af753e1424003a77 (patch) | |
tree | 6b3bd4dcec199ef10e138b7755d1c853db85a7d7 /src/net/tmwserv/tradehandler.cpp | |
parent | 004b2853d37a18a67c348c29e4500f3ef68337b5 (diff) | |
download | mana-ffe62a721cf3c17b815da591af753e1424003a77.tar.gz mana-ffe62a721cf3c17b815da591af753e1424003a77.tar.bz2 mana-ffe62a721cf3c17b815da591af753e1424003a77.tar.xz mana-ffe62a721cf3c17b815da591af753e1424003a77.zip |
Add TMWServ's SkillHandler
Also namespace both Player- and TradeHandlers
Diffstat (limited to 'src/net/tmwserv/tradehandler.cpp')
-rw-r--r-- | src/net/tmwserv/tradehandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/tmwserv/tradehandler.cpp b/src/net/tmwserv/tradehandler.cpp index 07ed81e6..17a45a19 100644 --- a/src/net/tmwserv/tradehandler.cpp +++ b/src/net/tmwserv/tradehandler.cpp @@ -56,6 +56,8 @@ namespace { Net::TradeHandler *tradeHandler; +namespace TmwServ { + TradeHandler::TradeHandler(): mAcceptTradeRequests(true) { @@ -142,8 +144,6 @@ void TradeHandler::handleMessage(MessageIn &msg) void TradeHandler::request(Being *being) { - extern std::string tradePartnerName; - extern int tradePartnerID; tradePartnerName = being->getName(); tradePartnerID = being->getId(); Net::GameServer::Player::requestTrade(tradePartnerID); @@ -185,3 +185,5 @@ void TradeHandler::cancel() { Net::GameServer::Player::acceptTrade(false); } + +} // namespace TmwServ |