NS/main/source/mod/AvHServerPlayerData.h
Ari Timonen 4f13237895 Update line endings
Change CRLF to LF in repo.
2018-04-22 18:55:55 +03:00

48 lines
No EOL
1.1 KiB
C++

#ifndef AVH_SERVERPLAYERDATA_H
#define AVH_SERVERPLAYERDATA_H
#include "../types.h"
#include "AvHConstants.h"
#include "AvHTechTree.h"
#include "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);
const AvHTechTree& GetCombatNodes();
void SetCombatNodes(const AvHTechTree& inTechNodes);
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;
AvHTechTree mCombatNodes;
MessageIDListType mPurchasedCombatUpgrades;
int mExperienceLevelsSpent;
bool mHasJoinedTeam;
};
#endif