summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 15:16:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:08 +0300
commit4fd1fb3701088b62b78e7c90bf4f7e825ff8259a (patch)
tree6c583df75d024708d033c955f13978b7f0fddf01 /src/net/ea/playerhandler.h
parent4d892bd515041fbabfccc36cd1ea55141cf82c24 (diff)
downloadmv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.gz
mv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.bz2
mv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.xz
mv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.zip
Move actual update stats into one function.
Diffstat (limited to 'src/net/ea/playerhandler.h')
-rw-r--r--src/net/ea/playerhandler.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/net/ea/playerhandler.h b/src/net/ea/playerhandler.h
index 6669da9ff..a2e126bc2 100644
--- a/src/net/ea/playerhandler.h
+++ b/src/net/ea/playerhandler.h
@@ -57,17 +57,23 @@ class PlayerHandler notfinal : public Net::PlayerHandler
int getAttackLocation() const override final A_WARN_UNUSED;
+ protected:
+ virtual void setStat(const int type,
+ const int base,
+ const int mod,
+ const bool notify) const = 0;
+
static void processPlayerWarp(Net::MessageIn &msg);
- static void processPlayerStatUpdate1(Net::MessageIn &msg);
+ void processPlayerStatUpdate1(Net::MessageIn &msg) const;
- static void processPlayerStatUpdate2(Net::MessageIn &msg);
+ void processPlayerStatUpdate2(Net::MessageIn &msg) const;
- static void processPlayerStatUpdate3(Net::MessageIn &msg);
+ void processPlayerStatUpdate3(Net::MessageIn &msg) const;
- static void processPlayerStatUpdate4(Net::MessageIn &msg);
+ void processPlayerStatUpdate4(Net::MessageIn &msg) const;
- static void processPlayerStatUpdate6(Net::MessageIn &msg);
+ void processPlayerStatUpdate6(Net::MessageIn &msg) const;
static void processPlayerArrowMessage(Net::MessageIn &msg);
};