summaryrefslogtreecommitdiff
path: root/src/net/tmwserv
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-13 21:39:23 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-13 21:39:23 -0600
commit6d3e53146ba15e4d90670db3067fa7f1a67034e1 (patch)
tree20c2fd4db10392997ba712ca7e75ed68da044230 /src/net/tmwserv
parentfeb73c9a8dcaf9ebd30ad8b00ce08cf41ca65849 (diff)
downloadmana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.tar.gz
mana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.tar.bz2
mana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.tar.xz
mana-client-6d3e53146ba15e4d90670db3067fa7f1a67034e1.zip
Rename Net::SkillHandler to Net::SpecialHandler
SkillHandler::up moved to PlayerHandler::increaseSkill
Diffstat (limited to 'src/net/tmwserv')
-rw-r--r--src/net/tmwserv/playerhandler.cpp5
-rw-r--r--src/net/tmwserv/playerhandler.h2
-rw-r--r--src/net/tmwserv/specialhandler.cpp (renamed from src/net/tmwserv/skillhandler.cpp)16
-rw-r--r--src/net/tmwserv/specialhandler.h (renamed from src/net/tmwserv/skillhandler.h)14
4 files changed, 22 insertions, 15 deletions
diff --git a/src/net/tmwserv/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp
index 6cf81496..fe1b821c 100644
--- a/src/net/tmwserv/playerhandler.cpp
+++ b/src/net/tmwserv/playerhandler.cpp
@@ -332,6 +332,11 @@ void PlayerHandler::decreaseStat(LocalPlayer::Attribute attr)
// TODO
}
+void PlayerHandler::increaseSkill(int skillId)
+{
+ // Not used atm
+}
+
void PlayerHandler::pickUp(FloorItem *floorItem)
{
int id = floorItem->getId();
diff --git a/src/net/tmwserv/playerhandler.h b/src/net/tmwserv/playerhandler.h
index 164d30ae..88844a55 100644
--- a/src/net/tmwserv/playerhandler.h
+++ b/src/net/tmwserv/playerhandler.h
@@ -42,6 +42,8 @@ class PlayerHandler : public MessageHandler, public Net::PlayerHandler
void decreaseStat(LocalPlayer::Attribute attr);
+ void increaseSkill(int skillId);
+
void pickUp(FloorItem *floorItem);
void setDirection(char direction);
diff --git a/src/net/tmwserv/skillhandler.cpp b/src/net/tmwserv/specialhandler.cpp
index e35b896a..5be8272a 100644
--- a/src/net/tmwserv/skillhandler.cpp
+++ b/src/net/tmwserv/specialhandler.cpp
@@ -19,33 +19,33 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "net/tmwserv/skillhandler.h"
+#include "net/tmwserv/specialhandler.h"
-Net::SkillHandler *skillHandler;
+Net::SpecialHandler *specialHandler;
namespace TmwServ {
-SkillHandler::SkillHandler()
+SpecialHandler::SpecialHandler()
{
- skillHandler = this;
+ specialHandler = this;
}
-void SkillHandler::up(int skillId)
+void SpecialHandler::use(int id)
{
// TODO
}
-void SkillHandler::use(int skillId, int level, int beingId)
+void SpecialHandler::use(int id, int level, int beingId)
{
// TODO
}
-void SkillHandler::use(int skillId, int level, int x, int y)
+void SpecialHandler::use(int id, int level, int x, int y)
{
// TODO
}
-void SkillHandler::use(int skillId, const std::string &map)
+void SpecialHandler::use(int id, const std::string &map)
{
// TODO
}
diff --git a/src/net/tmwserv/skillhandler.h b/src/net/tmwserv/specialhandler.h
index 8c459c4f..c7ebd6a2 100644
--- a/src/net/tmwserv/skillhandler.h
+++ b/src/net/tmwserv/specialhandler.h
@@ -22,22 +22,22 @@
#ifndef NET_TMWSERV_SKILLHANDLER_H
#define NET_TMWSERV_SKILLHANDLER_H
-#include "net/skillhandler.h"
+#include "net/specialhandler.h"
namespace TmwServ {
-class SkillHandler : public Net::SkillHandler
+class SpecialHandler : public Net::SpecialHandler
{
public:
- SkillHandler();
+ SpecialHandler();
- void up(int skillId);
+ void use(int id);
- void use(int skillId, int level, int beingId);
+ void use(int id, int level, int beingId);
- void use(int skillId, int level, int x, int y);
+ void use(int id, int level, int x, int y);
- void use(int skillId, const std::string &map);
+ void use(int id, const std::string &map);
};
} // namespace TmwServ