Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
781 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: DOD's custom C_PlayerResource
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef C_DOD_PLAYERRESOURCE_H
  8. #define C_DOD_PLAYERRESOURCE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "dod_shareddefs.h"
  13. #include "c_playerresource.h"
  14. class C_DOD_PlayerResource : public C_PlayerResource
  15. {
  16. DECLARE_CLASS( C_DOD_PlayerResource, C_PlayerResource );
  17. public:
  18. DECLARE_CLIENTCLASS();
  19. C_DOD_PlayerResource();
  20. virtual ~C_DOD_PlayerResource();
  21. int GetScore( int iIndex );
  22. int GetPlayerClass( int iIndex );
  23. protected:
  24. int m_iObjScore[MAX_PLAYERS+1];
  25. int m_iPlayerClass[MAX_PLAYERS+1];
  26. };
  27. #endif // C_DOD_PLAYERRESOURCE_H