khanat-opennel-code/code/ryzom/client/src/r2/tool_draw_road.h

47 lines
888 B
C
Raw Normal View History

2010-05-06 00:08:41 +00:00
/*
#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