tileTool.h 643 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _TILETOOL_H_
  2. #define _TILETOOL_H_
  3. #ifndef _NAVMESH_TOOL_H_
  4. #include "navigation/navMeshTool.h"
  5. #endif
  6. class TileTool : public NavMeshTool
  7. {
  8. typedef NavMeshTool Parent;
  9. S32 mCurTile;
  10. S32 mSelTile;
  11. public:
  12. DECLARE_CONOBJECT(TileTool);
  13. TileTool() { mCurTile = -1; mSelTile = -1; }
  14. virtual ~TileTool() {}
  15. void onActivated(const Gui3DMouseEvent& evt) override;
  16. void onDeactivated() override;
  17. void on3DMouseDown(const Gui3DMouseEvent& evt) override;
  18. void on3DMouseMove(const Gui3DMouseEvent& evt) override;
  19. void onRender3D() override;
  20. void buildTile();
  21. bool updateGuiInfo() override;
  22. };
  23. #endif