2005-03-09 01:31:56 +00:00
|
|
|
#ifndef AVH_SERVERPLAYERDATA_H
|
|
|
|
#define AVH_SERVERPLAYERDATA_H
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
#include "mod/AvHConstants.h"
|
2005-04-01 03:04:57 +00:00
|
|
|
#include "mod/AvHTechTree.h"
|
2005-03-09 01:31:56 +00:00
|
|
|
#include "mod/AvHMessageList.h"
|
|
|
|
|
|
|
|
class AvHServerPlayerData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AvHServerPlayerData();
|
|
|
|
|
|
|
|
float GetResources() const;
|
|
|
|
void SetResources(float inResources);
|
|
|
|
|
|
|
|
float GetTimeVotedDown() const;
|
|
|
|
void SetTimeVotedDown(float inTime);
|
|
|
|
|
|
|
|
float GetExperience() const;
|
|
|
|
void SetExperience(float inExperience);
|
|
|
|
|
2005-04-01 03:04:57 +00:00
|
|
|
const AvHTechTree& GetCombatNodes();
|
|
|
|
void SetCombatNodes(const AvHTechTree& inTechNodes);
|
2005-03-09 01:31:56 +00:00
|
|
|
|
|
|
|
const MessageIDListType& GetPurchasedCombatUpgrades() const;
|
|
|
|
void SetPurchasedCombatUpgrades(const MessageIDListType& inPurchasedCombatUpgrades);
|
|
|
|
|
|
|
|
int GetExperienceLevelsSpent() const;
|
|
|
|
void SetExperienceLevelsSpent(int inExperienceLevelsSpent);
|
|
|
|
|
|
|
|
bool GetHasJoinedTeam() { return mHasJoinedTeam; }
|
|
|
|
void SetHasJoinedTeam(int HasJoinedTeam) { mHasJoinedTeam = HasJoinedTeam; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
float mResources;
|
|
|
|
float mTimeLastVotedDown;
|
|
|
|
float mExperience;
|
|
|
|
|
2005-04-01 03:04:57 +00:00
|
|
|
AvHTechTree mCombatNodes;
|
2005-03-09 01:31:56 +00:00
|
|
|
|
|
|
|
MessageIDListType mPurchasedCombatUpgrades;
|
|
|
|
int mExperienceLevelsSpent;
|
|
|
|
bool mHasJoinedTeam;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|