mirror of
https://github.com/ENSL/NS.git
synced 2025-06-02 10:01:04 +00:00
Branched for the performance test.
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@219 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
410d1ea62f
commit
3e025675b3
2811 changed files with 370563 additions and 0 deletions
70
dev/performance/source/mod/AvHServerPlayerData.cpp
Normal file
70
dev/performance/source/mod/AvHServerPlayerData.cpp
Normal file
|
@ -0,0 +1,70 @@
|
|||
#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;
|
||||
}
|
||||
|
||||
const AvHTechTree& AvHServerPlayerData::GetCombatNodes()
|
||||
{
|
||||
return this->mCombatNodes;
|
||||
}
|
||||
|
||||
void AvHServerPlayerData::SetCombatNodes(const AvHTechTree& inTechNodes)
|
||||
{
|
||||
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue