summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-24 15:44:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-24 15:44:24 +0300
commita5f9e965323ad4b211405736eda7557cbe6a013a (patch)
tree21409cd38f547c80637e7ebfa60fe435df7f7d87 /src/net/ea
parent66964dacb5c0d885fa3443a0e204d5838ae1443c (diff)
downloadplus-a5f9e965323ad4b211405736eda7557cbe6a013a.tar.gz
plus-a5f9e965323ad4b211405736eda7557cbe6a013a.tar.bz2
plus-a5f9e965323ad4b211405736eda7557cbe6a013a.tar.xz
plus-a5f9e965323ad4b211405736eda7557cbe6a013a.zip
Rename specialhandler to skillhandler.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/skillhandler.cpp (renamed from src/net/ea/specialhandler.cpp)12
-rw-r--r--src/net/ea/skillhandler.h (renamed from src/net/ea/specialhandler.h)8
2 files changed, 10 insertions, 10 deletions
diff --git a/src/net/ea/specialhandler.cpp b/src/net/ea/skillhandler.cpp
index 6f9b346a3..45177f7e6 100644
--- a/src/net/ea/specialhandler.cpp
+++ b/src/net/ea/skillhandler.cpp
@@ -20,7 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "net/ea/specialhandler.h"
+#include "net/ea/skillhandler.h"
#include "logger.h"
#include "localplayer.h"
@@ -68,16 +68,16 @@ static const unsigned int SKILL_FAILED = 0x00;
namespace Ea
{
-SpecialHandler::SpecialHandler()
+SkillHandler::SkillHandler()
{
}
-void SpecialHandler::use(int id A_UNUSED)
+void SkillHandler::use(int id A_UNUSED)
{
// TODO
}
-void SpecialHandler::processPlayerSkills(Net::MessageIn &msg)
+void SkillHandler::processPlayerSkills(Net::MessageIn &msg)
{
msg.readInt16(); // length
const int skillCount = (msg.getLength() - 4) / 37;
@@ -102,7 +102,7 @@ void SpecialHandler::processPlayerSkills(Net::MessageIn &msg)
}
}
-void SpecialHandler::processPlayerSkillUp(Net::MessageIn &msg)
+void SkillHandler::processPlayerSkillUp(Net::MessageIn &msg)
{
const int skillId = msg.readInt16();
const int level = msg.readInt16();
@@ -118,7 +118,7 @@ void SpecialHandler::processPlayerSkillUp(Net::MessageIn &msg)
}
}
-void SpecialHandler::processSkillFailed(Net::MessageIn &msg)
+void SkillHandler::processSkillFailed(Net::MessageIn &msg)
{
// Action failed (ex. sit because you have not reached the
// right level)
diff --git a/src/net/ea/specialhandler.h b/src/net/ea/skillhandler.h
index 3c3317251..c07cb7c46 100644
--- a/src/net/ea/specialhandler.h
+++ b/src/net/ea/skillhandler.h
@@ -25,17 +25,17 @@
#include "net/messagein.h"
#include "net/net.h"
-#include "net/specialhandler.h"
+#include "net/skillhandler.h"
namespace Ea
{
-class SpecialHandler : public Net::SpecialHandler
+class SkillHandler : public Net::SkillHandler
{
public:
- SpecialHandler();
+ SkillHandler();
- A_DELETE_COPY(SpecialHandler)
+ A_DELETE_COPY(SkillHandler)
void handleMessage(Net::MessageIn &msg);