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.

49 lines
893 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TOOLSPHERE_H
  8. #define TOOLSPHERE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "ToolInterface.h"
  13. class CMapSphere;
  14. class CToolSphere : public CBaseTool
  15. {
  16. public:
  17. CToolSphere();
  18. void Attach(CMapSphere *pShere);
  19. //
  20. // CBaseTool implementation.
  21. //
  22. virtual ToolID_t GetToolID(void) { return TOOL_SPHERE; }
  23. virtual bool OnLMouseDown2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  24. virtual bool OnLMouseUp2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  25. virtual bool OnMouseMove2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  26. //virtual void RenderTool2D(CRender2D *pRender);
  27. private:
  28. CMapSphere *m_pSphere;
  29. };
  30. #endif // TOOLSPHERE_H