source-engine/game/client/swarm/c_asw_objective_kill_eggs.h
2023-10-03 17:23:56 +03:00

38 lines
942 B
C++

#ifndef _INCLUDED_C_ASW_OBJECTIVE_KILL_EGGS_H
#define _INCLUDED_C_ASW_OBJECTIVE_KILL_EGGS_H
#include "c_asw_objective.h"
class C_ASW_Objective_Kill_Eggs : public C_ASW_Objective
{
public:
DECLARE_CLASS( C_ASW_Objective_Kill_Eggs, C_ASW_Objective );
DECLARE_CLIENTCLASS();
C_ASW_Objective_Kill_Eggs();
virtual void OnDataChanged(DataUpdateType_t updateType);
virtual const wchar_t* GetObjectiveTitle();
virtual bool NeedsTitleUpdate();
virtual float GetObjectiveProgress();
void FindText();
wchar_t *GetPluralText();
wchar_t *GetSingularText();
CNetworkVar(int, m_iTargetKills);
CNetworkVar(int, m_iCurrentKills);
wchar_t *m_pKillText;
wchar_t *m_pAlienPluralText;
wchar_t *m_pAlienSingularText;
bool m_bFoundText;
wchar_t m_dest_buffer[64];
int m_iKillsLeft;
private:
C_ASW_Objective_Kill_Eggs( const C_ASW_Objective_Kill_Eggs & ); // not defined, not accessible
};
#endif // _INCLUDED_C_ASW_OBJECTIVE_KILL_EGGS_H