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/gui | |
parent | 004b2853d37a18a67c348c29e4500f3ef68337b5 (diff) | |
download | mana-client-ffe62a721cf3c17b815da591af753e1424003a77.tar.gz mana-client-ffe62a721cf3c17b815da591af753e1424003a77.tar.bz2 mana-client-ffe62a721cf3c17b815da591af753e1424003a77.tar.xz mana-client-ffe62a721cf3c17b815da591af753e1424003a77.zip |
Add TMWServ's SkillHandler
Also namespace both Player- and TradeHandlers
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/status.cpp | 12 | ||||
-rw-r--r-- | src/gui/trade.cpp | 5 |
2 files changed, 8 insertions, 9 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp index 92ae2916..ad50c72f 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -269,17 +269,17 @@ void StatusWindow::action(const gcn::ActionEvent &event) if (event.getId().length() == 3) { if (event.getId() == "STR") - playerHandler->increaseStat(LocalPlayer::STR); + Net::getPlayerHandler()->increaseStat(LocalPlayer::STR); if (event.getId() == "AGI") - playerHandler->increaseStat(LocalPlayer::AGI); + Net::getPlayerHandler()->increaseStat(LocalPlayer::AGI); if (event.getId() == "VIT") - playerHandler->increaseStat(LocalPlayer::VIT); + Net::getPlayerHandler()->increaseStat(LocalPlayer::VIT); if (event.getId() == "INT") - playerHandler->increaseStat(LocalPlayer::INT); + Net::getPlayerHandler()->increaseStat(LocalPlayer::INT); if (event.getId() == "DEX") - playerHandler->increaseStat(LocalPlayer::DEX); + Net::getPlayerHandler()->increaseStat(LocalPlayer::DEX); if (event.getId() == "LUK") - playerHandler->increaseStat(LocalPlayer::LUK); + Net::getPlayerHandler()->increaseStat(LocalPlayer::LUK); } } diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index 504396c5..f931b81b 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -307,15 +307,14 @@ void TradeWindow::action(const gcn::ActionEvent &event) { mMoneyField->setText(toString(tempInt)); - // Net::getTradeHandler()->setMoney(tempInt); - tradeHandler->setMoney(tempInt); + Net::getTradeHandler()->setMoney(tempInt); } else { mMoneyField->setText(""); } mMoneyField->setEnabled(false); - tradeHandler->confirm(); + Net::getTradeHandler()->confirm(); } #endif else if (event.getId() == "trade") |