mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Consistent spacing for getters and setters
This commit is contained in:
parent
968b5c1fed
commit
f5f07860c4
|
@ -434,7 +434,7 @@ public:
|
||||||
|
|
||||||
bool EditorHasUnsavedData() { return m_pEditor->HasUnsavedData(); }
|
bool EditorHasUnsavedData() { return m_pEditor->HasUnsavedData(); }
|
||||||
|
|
||||||
virtual IFriends* Foes() {return &m_Foes; }
|
virtual IFriends* Foes() { return &m_Foes; }
|
||||||
|
|
||||||
void GetSmoothTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount);
|
void GetSmoothTick(int *pSmoothTick, float *pSmoothIntraTick, float MixAmount);
|
||||||
};
|
};
|
||||||
|
|
|
@ -126,11 +126,11 @@ public:
|
||||||
|
|
||||||
// Setters/Getters because i don't want to modify vanilla vars access modifiers
|
// Setters/Getters because i don't want to modify vanilla vars access modifiers
|
||||||
int GetLastWeapon() { return m_LastWeapon; };
|
int GetLastWeapon() { return m_LastWeapon; };
|
||||||
void SetLastWeapon(int LastWeap) {m_LastWeapon = LastWeap; };
|
void SetLastWeapon(int LastWeap) { m_LastWeapon = LastWeap; };
|
||||||
int GetActiveWeapon() { return m_Core.m_ActiveWeapon; };
|
int GetActiveWeapon() { return m_Core.m_ActiveWeapon; };
|
||||||
void SetActiveWeapon(int ActiveWeap) {m_Core.m_ActiveWeapon = ActiveWeap; };
|
void SetActiveWeapon(int ActiveWeap) { m_Core.m_ActiveWeapon = ActiveWeap; };
|
||||||
CCharacterCore GetCore() { return m_Core; };
|
CCharacterCore GetCore() { return m_Core; };
|
||||||
void SetCore(CCharacterCore Core) {m_Core = Core; };
|
void SetCore(CCharacterCore Core) { m_Core = Core; };
|
||||||
CCharacterCore* Core() { return &m_Core; };
|
CCharacterCore* Core() { return &m_Core; };
|
||||||
bool GetWeaponGot(int Type) { return m_aWeapons[Type].m_Got; };
|
bool GetWeaponGot(int Type) { return m_aWeapons[Type].m_Got; };
|
||||||
void SetWeaponGot(int Type, bool Value) { m_aWeapons[Type].m_Got = Value; };
|
void SetWeaponGot(int Type, bool Value) { m_aWeapons[Type].m_Got = Value; };
|
||||||
|
|
|
@ -83,7 +83,7 @@ public:
|
||||||
|
|
||||||
void Rescue();
|
void Rescue();
|
||||||
|
|
||||||
int NeededFaketuning() {return m_NeededFaketuning;}
|
int NeededFaketuning() { return m_NeededFaketuning;}
|
||||||
bool IsAlive() const { return m_Alive; }
|
bool IsAlive() const { return m_Alive; }
|
||||||
bool IsPaused() const { return m_Paused; }
|
bool IsPaused() const { return m_Paused; }
|
||||||
class CPlayer *GetPlayer() { return m_pPlayer; }
|
class CPlayer *GetPlayer() { return m_pPlayer; }
|
||||||
|
@ -262,14 +262,14 @@ public:
|
||||||
|
|
||||||
// Setters/Getters because i don't want to modify vanilla vars access modifiers
|
// Setters/Getters because i don't want to modify vanilla vars access modifiers
|
||||||
int GetLastWeapon() { return m_LastWeapon; };
|
int GetLastWeapon() { return m_LastWeapon; };
|
||||||
void SetLastWeapon(int LastWeap) {m_LastWeapon = LastWeap; };
|
void SetLastWeapon(int LastWeap) { m_LastWeapon = LastWeap; };
|
||||||
int GetActiveWeapon() { return m_Core.m_ActiveWeapon; };
|
int GetActiveWeapon() { return m_Core.m_ActiveWeapon; };
|
||||||
void SetActiveWeapon(int ActiveWeap) {m_Core.m_ActiveWeapon = ActiveWeap; };
|
void SetActiveWeapon(int ActiveWeap) { m_Core.m_ActiveWeapon = ActiveWeap; };
|
||||||
void SetLastAction(int LastAction) {m_LastAction = LastAction; };
|
void SetLastAction(int LastAction) { m_LastAction = LastAction; };
|
||||||
int GetArmor() { return m_Armor; };
|
int GetArmor() { return m_Armor; };
|
||||||
void SetArmor(int Armor) {m_Armor = Armor; };
|
void SetArmor(int Armor) { m_Armor = Armor; };
|
||||||
CCharacterCore GetCore() { return m_Core; };
|
CCharacterCore GetCore() { return m_Core; };
|
||||||
void SetCore(CCharacterCore Core) {m_Core = Core; };
|
void SetCore(CCharacterCore Core) { m_Core = Core; };
|
||||||
CCharacterCore* Core() { return &m_Core; };
|
CCharacterCore* Core() { return &m_Core; };
|
||||||
bool GetWeaponGot(int Type) { return m_aWeapons[Type].m_Got; };
|
bool GetWeaponGot(int Type) { return m_aWeapons[Type].m_Got; };
|
||||||
void SetWeaponGot(int Type, bool Value) { m_aWeapons[Type].m_Got = Value; };
|
void SetWeaponGot(int Type, bool Value) { m_aWeapons[Type].m_Got = Value; };
|
||||||
|
|
|
@ -94,7 +94,7 @@ public:
|
||||||
CSaveTeam(IGameController* Controller);
|
CSaveTeam(IGameController* Controller);
|
||||||
~CSaveTeam();
|
~CSaveTeam();
|
||||||
char* GetString();
|
char* GetString();
|
||||||
int GetMembersCount() {return m_MembersCount;}
|
int GetMembersCount() { return m_MembersCount; }
|
||||||
int LoadString(const char* String);
|
int LoadString(const char* String);
|
||||||
int save(int Team);
|
int save(int Team);
|
||||||
int load(int Team);
|
int load(int Team);
|
||||||
|
|
Loading…
Reference in a new issue