mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-16 22:08:44 +00:00
47 lines
No EOL
888 B
C++
47 lines
No EOL
888 B
C++
/*
|
|
#ifndef R2_TOOL_DRAW_ROAD_H
|
|
#define R2_TOOL_DRAW_ROAD_H
|
|
|
|
#include "tool.h"
|
|
#include "displayer_visual_road.h"
|
|
//
|
|
#include "nel/misc/vector.h"
|
|
|
|
|
|
class CEntity;
|
|
class CLuaObject;
|
|
|
|
|
|
namespace R2
|
|
{
|
|
|
|
/**
|
|
* Tool to draw a road
|
|
*/
|
|
/*
|
|
class CToolDrawRoad : public CTool
|
|
{
|
|
public:
|
|
NLMISC_DECLARE_CLASS(R2::CToolDrawRoad);
|
|
virtual const char *getToolUIName() const { return "drawRoad"; }
|
|
virtual bool isCreationTool() const { return true; }
|
|
CToolDrawRoad();
|
|
virtual void cancel();
|
|
virtual void updateAfterRender();
|
|
virtual void updateBeforeRender();
|
|
virtual bool onMouseLeftButtonClicked();
|
|
virtual bool onMouseRightButtonClicked();
|
|
virtual bool onMouseLeftButtonDown();
|
|
private:
|
|
CRoad _Road; // the road being drawn
|
|
uint _NumWayPoints;
|
|
bool _ValidPos;
|
|
std::vector<NLMISC::CVector> _WayPoints;
|
|
};
|
|
|
|
|
|
|
|
|
|
} // R2
|
|
*/
|
|
#endif |