From 3dc311a652d1fda1252903a974920395e56e5668 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Tue, 13 Sep 2005 22:56:29 +0000 Subject: Merged with SDL_NET_TEST branch. --- src/playerinfo.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/playerinfo.h') 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 +#include -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 -- cgit v1.2.3-70-g09d2