summaryrefslogtreecommitdiffstats
path: root/Project/Element.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-08-03 00:15:54 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-08-03 00:15:54 -0300
commit0b720e578e0e91262e04651ce81cd2e7f6828967 (patch)
tree7e011b00acb151fd86f1e400ab836e8ce854dad1 /Project/Element.h
parent78aac544e1e77f5405260797cee4b94d7a0dfe32 (diff)
downloadPSP.git-0b720e578e0e91262e04651ce81cd2e7f6828967.tar.gz
PSP.git-0b720e578e0e91262e04651ce81cd2e7f6828967.tar.xz
PSP.git-0b720e578e0e91262e04651ce81cd2e7f6828967.zip
More controllers add to bus
Next step: move elements
Diffstat (limited to 'Project/Element.h')
-rw-r--r--Project/Element.h17
1 files changed, 15 insertions, 2 deletions
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 <wx/cursor.h>
#include <GL/gl.h>
+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