2005-03-09 01:31:56 +00:00
|
|
|
#include "mod/AvHServerPlayerData.h"
|
|
|
|
|
|
|
|
AvHServerPlayerData::AvHServerPlayerData()
|
|
|
|
{
|
|
|
|
this->mResources = -1;
|
|
|
|
this->mTimeLastVotedDown = -1;
|
|
|
|
this->mExperience = 0.0f;
|
|
|
|
this->mExperienceLevelsSpent = 0;
|
|
|
|
this->mHasJoinedTeam = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
float AvHServerPlayerData::GetResources() const
|
|
|
|
{
|
|
|
|
return this->mResources;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AvHServerPlayerData::SetResources(float inResources)
|
|
|
|
{
|
|
|
|
this->mResources = inResources;
|
|
|
|
}
|
|
|
|
|
|
|
|
float AvHServerPlayerData::GetTimeVotedDown() const
|
|
|
|
{
|
|
|
|
return this->mTimeLastVotedDown;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AvHServerPlayerData::SetTimeVotedDown(float inTime)
|
|
|
|
{
|
|
|
|
this->mTimeLastVotedDown = inTime;
|
|
|
|
}
|
|
|
|
|
|
|
|
float AvHServerPlayerData::GetExperience() const
|
|
|
|
{
|
|
|
|
return this->mExperience;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AvHServerPlayerData::SetExperience(float inExperience)
|
|
|
|
{
|
|
|
|
this->mExperience = inExperience;
|
|
|
|
}
|
|
|
|
|
2005-04-01 03:04:57 +00:00
|
|
|
const AvHTechTree& AvHServerPlayerData::GetCombatNodes()
|
2005-03-09 01:31:56 +00:00
|
|
|
{
|
|
|
|
return this->mCombatNodes;
|
|
|
|
}
|
|
|
|
|
2005-04-01 03:04:57 +00:00
|
|
|
void AvHServerPlayerData::SetCombatNodes(const AvHTechTree& inTechNodes)
|
2005-03-09 01:31:56 +00:00
|
|
|
{
|
|
|
|
this->mCombatNodes = inTechNodes;
|
|
|
|
}
|
|
|
|
|
|
|
|
const MessageIDListType& AvHServerPlayerData::GetPurchasedCombatUpgrades() const
|
|
|
|
{
|
|
|
|
return this->mPurchasedCombatUpgrades;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AvHServerPlayerData::SetPurchasedCombatUpgrades(const MessageIDListType& inPurchasedCombatUpgrades)
|
|
|
|
{
|
|
|
|
this->mPurchasedCombatUpgrades = inPurchasedCombatUpgrades;
|
|
|
|
}
|
|
|
|
|
|
|
|
int AvHServerPlayerData::GetExperienceLevelsSpent() const
|
|
|
|
{
|
|
|
|
return this->mExperienceLevelsSpent;
|
|
|
|
}
|
|
|
|
|
|
|
|
void AvHServerPlayerData::SetExperienceLevelsSpent(int inExperienceLevelsSpent)
|
|
|
|
{
|
|
|
|
this->mExperienceLevelsSpent = inExperienceLevelsSpent;
|
|
|
|
}
|