mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Make more variables private
This commit is contained in:
parent
c5c837e0e3
commit
e88459acec
|
@ -382,22 +382,23 @@ public:
|
|||
bool Predict() { return g_Config.m_ClPredict && !(m_Snap.m_pGameInfoObj && m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_GAMEOVER) && !m_Snap.m_SpecInfo.m_Active && Client()->State() != IClient::STATE_DEMOPLAYBACK && m_Snap.m_pLocalCharacter; }
|
||||
bool PredictDummy() { return AntiPingPlayers() && Client()->DummyConnected() && m_Snap.m_LocalClientID >= 0 && m_PredictedDummyID >= 0; }
|
||||
|
||||
CGameWorld m_GameWorld;
|
||||
CGameWorld m_PredictedWorld;
|
||||
CGameWorld m_PrevPredictedWorld;
|
||||
|
||||
private:
|
||||
bool m_DDRaceMsgSent[2];
|
||||
int m_ShowOthers[2];
|
||||
|
||||
void UpdatePrediction();
|
||||
void UpdateRenderedCharacters();
|
||||
void DetectStrongHook();
|
||||
vec2 GetSmoothPos(int ClientID);
|
||||
|
||||
CGameWorld m_GameWorld;
|
||||
CGameWorld m_PredictedWorld;
|
||||
CGameWorld m_PrevPredictedWorld;
|
||||
int m_PredictedDummyID;
|
||||
int m_IsDummySwapping;
|
||||
CCharOrder m_CharOrder;
|
||||
class CCharacter m_aLastWorldCharacters[MAX_CLIENTS];
|
||||
|
||||
private:
|
||||
bool m_DDRaceMsgSent[2];
|
||||
int m_ShowOthers[2];
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
class CProjectile : public CEntity
|
||||
{
|
||||
friend class CGameWorld;
|
||||
friend class CItems;
|
||||
public:
|
||||
CProjectile
|
||||
(
|
||||
|
@ -33,7 +34,7 @@ public:
|
|||
|
||||
virtual void Tick();
|
||||
|
||||
//private:
|
||||
private:
|
||||
vec2 m_Direction;
|
||||
int m_LifeSpan;
|
||||
int m_Owner;
|
||||
|
|
Loading…
Reference in a new issue