Counter Strike : Global Offensive Source Code
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.

29 lines
985 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Interface that entities can use to redirect scoring to other entities.
  4. // i.e. A rocket redirects scoring to the player that fired it.
  5. //
  6. // $NoKeywords: $
  7. //=============================================================================//
  8. #ifndef ISCORER_H
  9. #define ISCORER_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Interface that entities can use to redirect scoring to other entities.
  15. // i.e. A rocket redirects scoring to the player that fired it.
  16. //-----------------------------------------------------------------------------
  17. abstract_class IScorer
  18. {
  19. public:
  20. // Return the entity that should receive the score
  21. virtual CBasePlayer *GetScorer( void ) = 0;
  22. // Return the entity that should get assistance credit
  23. virtual CBasePlayer *GetAssistant( void ) = 0;
  24. };
  25. #endif // ISCORER_H