From 0b720e578e0e91262e04651ce81cd2e7f6828967 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 3 Aug 2016 00:15:54 -0300 Subject: More controllers add to bus Next step: move elements --- Project/Element.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'Project/Element.h') diff --git a/Project/Element.h b/Project/Element.h index 7023704..bb74910 100644 --- a/Project/Element.h +++ b/Project/Element.h @@ -5,6 +5,17 @@ #include #include +enum PickboxID +{ + ID_PB_NONE = 0, + ID_PB_RIGHT, + ID_PB_LEFT, + ID_PB_RIGHT_BOTTOM, + ID_PB_RIGHT_TOP, + ID_PB_LEFT_BOTTOM, + ID_PB_LEFT_TOP +}; + class Element { public: @@ -33,8 +44,8 @@ class Element virtual void Draw(wxPoint2DDouble translation, double scale) const = 0; virtual void Rotate() = 0; virtual bool Contains(wxPoint2DDouble position) const = 0; - virtual int PickboxContains(wxPoint2DDouble position) const = 0; - virtual void MovePickbox(wxPoint2DDouble position, int pickboxID) = 0; + virtual bool PickboxContains(wxPoint2DDouble position) = 0; + virtual void MovePickbox(wxPoint2DDouble position) = 0; virtual wxCursor GetBestPickboxCursor() const = 0; // General methods @@ -59,6 +70,8 @@ class Element bool m_selected = false; bool m_dragging = false; bool m_showPickbox = false; + + PickboxID m_activePickboxID = ID_PB_NONE; }; #endif // ELEMENT_H -- cgit