diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/c_tfteam.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/tf2/c_tfteam.h')
| -rw-r--r-- | game/client/tf2/c_tfteam.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/game/client/tf2/c_tfteam.h b/game/client/tf2/c_tfteam.h new file mode 100644 index 0000000..7ee6d61 --- /dev/null +++ b/game/client/tf2/c_tfteam.h @@ -0,0 +1,62 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Client side CTFTeam class +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef C_TFTEAM_H +#define C_TFTEAM_H +#ifdef _WIN32 +#pragma once +#endif + +#include "c_team.h" +#include "shareddefs.h" +#include "techtree.h" +#include "imessagechars.h" + +class C_BaseEntity; +class C_BaseObject; +class CBaseTechnology; + +//----------------------------------------------------------------------------- +// Purpose: TF's Team manager +//----------------------------------------------------------------------------- +class C_TFTeam : public C_Team +{ + DECLARE_CLASS( C_TFTeam, C_Team ); +public: + DECLARE_CLIENTCLASS(); + + C_TFTeam(); + virtual ~C_TFTeam(); + + // Data Access + virtual float GetTeamResources( void ); + virtual float GetPotentialTeamResources( void ); + virtual bool GetHaveZone( void ); + + // Objects, note GetObject can return NULL! + int GetNumObjects( int iObjectType = -1 ); + C_BaseObject *GetObject( int iIndex ); + bool IsObjectValid( int iIndex ); + + void NotifyBaseUnderAttack( const Vector &vecPosition, bool bPlaySound = true, bool bForce = false ); + + virtual void ReceiveMessage( int classID, bf_read &msg ); + +public: + // Resource UI data + bool m_bHaveZone; + + float m_fResources; // Current amounts of resources + float m_fPotentialResources; // Potential amounts of each resource when all harvesters have returned + + float m_LastAttackNotificationTime; + + CUtlVector< EHANDLE > m_aObjects; +}; + + +#endif // C_TFTEAM_H |