summaryrefslogtreecommitdiff
path: root/src/playerinfo.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-13 22:56:29 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-09-13 22:56:29 +0000
commit3dc311a652d1fda1252903a974920395e56e5668 (patch)
tree7098d55015d28a4d973c5073d7c9e45ae03ec400 /src/playerinfo.h
parent78771718bf7af14273d7bb0090dccff97b00b397 (diff)
downloadmana-3dc311a652d1fda1252903a974920395e56e5668.tar.gz
mana-3dc311a652d1fda1252903a974920395e56e5668.tar.bz2
mana-3dc311a652d1fda1252903a974920395e56e5668.tar.xz
mana-3dc311a652d1fda1252903a974920395e56e5668.zip
Merged with SDL_NET_TEST branch.
Diffstat (limited to 'src/playerinfo.h')
-rw-r--r--src/playerinfo.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/playerinfo.h b/src/playerinfo.h
index 29109fb6..c4028131 100644
--- a/src/playerinfo.h
+++ b/src/playerinfo.h
@@ -21,15 +21,16 @@
* $Id$
*/
-#ifndef _TMW_PLAYERINFO_H
-#define _TMW_PLAYERINFO_H
+#ifndef _TMW_PLAYERINFO_
+#define _TMW_PLAYERINFO_
-#include <vector>
+#include <string>
-struct PLAYER_INFO {
+struct PLAYER_INFO
+{
int id;
- float lastAttackTime; // used to synchronize the charge dialog
- char name[24];
+ float lastAttackTime; /**< Used to synchronize the charge dialog */
+ std::string name; /**< Player name */
short hp, max_hp, sp, max_sp, lv;
short statsPointsToAttribute;
int xp, xpForNextLevel, gp, job_xp, jobXpForNextLevel, job_lv;
@@ -40,6 +41,7 @@ struct PLAYER_INFO {
short weapon;
};
-extern PLAYER_INFO *char_info;
+extern PLAYER_INFO **char_info;
+extern PLAYER_INFO *player_info;
#endif