diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-20 22:41:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-20 22:41:20 +0300 |
commit | d75ab9a77c15b7a99dcd5051846e4978c3ab71c1 (patch) | |
tree | d5594cb7d9c61a4dc9db02aa095bfba485fbd86e /src/net/tmwa | |
parent | 8ed89ded1f45665fadd1e16ddc5d1b4962ad2182 (diff) | |
download | mv-d75ab9a77c15b7a99dcd5051846e4978c3ab71c1.tar.gz mv-d75ab9a77c15b7a99dcd5051846e4978c3ab71c1.tar.bz2 mv-d75ab9a77c15b7a99dcd5051846e4978c3ab71c1.tar.xz mv-d75ab9a77c15b7a99dcd5051846e4978c3ab71c1.zip |
Move player attributes in net code into separate file.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/attrs.h | 52 | ||||
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 1 | ||||
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 1 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 1 | ||||
-rw-r--r-- | src/net/tmwa/protocol.h | 26 |
5 files changed, 55 insertions, 26 deletions
diff --git a/src/net/tmwa/attrs.h b/src/net/tmwa/attrs.h new file mode 100644 index 000000000..98c135ee1 --- /dev/null +++ b/src/net/tmwa/attrs.h @@ -0,0 +1,52 @@ +/* + * The ManaPlus Client + * Copyright (C) 2004-2009 The Mana World Development Team + * Copyright (C) 2009-2010 The Mana Developers + * Copyright (C) 2011-2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef NET_TMWA_ATTRS_H +#define NET_TMWA_ATTRS_H + +namespace TmwAthena +{ + enum + { + JOB = 0xa, + + STR = 0xd, + AGI, + VIT, + INT, + DEX, + LUK, + + ATK, + DEF, + MATK, + MDEF, + HIT, + FLEE, + CRIT + +// KARMA, +// MANNER + }; +} // namespace TmwAthena + +#endif // NET_TMWA_ATTRS_H diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index 256f30296..04c1d4928 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -31,6 +31,7 @@ #include "net/logindata.h" #include "net/net.h" +#include "net/tmwa/attrs.h" #include "net/tmwa/loginhandler.h" #include "net/tmwa/messageout.h" #include "net/tmwa/network.h" diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index 32f6c37ed..57b8ee6d5 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -39,6 +39,7 @@ #include "net/ea/gui/partytab.h" #include "net/tmwa/adminhandler.h" +#include "net/tmwa/attrs.h" #include "net/tmwa/beinghandler.h" #include "net/tmwa/buysellhandler.h" #include "net/tmwa/chathandler.h" diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index a0246dbd4..a555a7b71 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -31,6 +31,7 @@ #include "net/net.h" +#include "net/tmwa/attrs.h" #include "net/tmwa/inventoryhandler.h" #include "net/tmwa/messageout.h" #include "net/tmwa/protocol.h" diff --git a/src/net/tmwa/protocol.h b/src/net/tmwa/protocol.h index 6ff1b45ab..1531aae5f 100644 --- a/src/net/tmwa/protocol.h +++ b/src/net/tmwa/protocol.h @@ -23,32 +23,6 @@ #ifndef NET_TMWA_PROTOCOL_H #define NET_TMWA_PROTOCOL_H -namespace TmwAthena -{ - enum - { - JOB = 0xa, - - STR = 0xd, - AGI, - VIT, - INT, - DEX, - LUK, - - ATK, - DEF, - MATK, - MDEF, - HIT, - FLEE, - CRIT - -// KARMA, -// MANNER - }; -} // namespace TmwAthena - /********************************* * Packets from server to client * *********************************/ |