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.

37 lines
812 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DOD_LOCATION_H
  7. #define DOD_LOCATION_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "baseentity.h"
  12. //a location on the map that players can refernce in their say messages
  13. //with the %l escape sequence
  14. class CDODLocation : public CBaseEntity
  15. {
  16. public:
  17. DECLARE_CLASS( CDODLocation, CBaseEntity );
  18. CDODLocation()
  19. {
  20. m_szLocationName[0] = '\0';
  21. }
  22. virtual void Spawn( void );
  23. virtual bool KeyValue( const char *szKeyName, const char *szValue );
  24. inline const char *GetName( void ) { return m_szLocationName; }
  25. private:
  26. char m_szLocationName[64];
  27. private:
  28. CDODLocation( const CDODLocation & );
  29. };
  30. #endif //DOD_LOCATION_H