diff options
Diffstat (limited to 'Project/Bus.cpp')
-rw-r--r-- | Project/Bus.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Project/Bus.cpp b/Project/Bus.cpp new file mode 100644 index 0000000..b598f40 --- /dev/null +++ b/Project/Bus.cpp @@ -0,0 +1,19 @@ +#include "Bus.h" + +Bus::Bus(wxPoint2DDouble position) : Element() +{ + m_width = 100.0; + m_height = 5.0; + SetPosition(position); +} +Bus::~Bus() {} + +void Bus::Draw(wxPoint2DDouble translation, double scale) const +{ + glColor4d(0.0, 0.0, 1.0, 1.0); + DrawRectangle(m_position, m_width, m_height); +} +bool Bus::Contains(wxPoint2DDouble position) const { return false; } +int Bus::PickboxContains(wxPoint2DDouble position) const { return 0; } +wxCursor Bus::GetBestPickboxCursor() const { return wxCURSOR_ARROW; } +void Bus::MovePickbox(wxPoint2DDouble position, int pickboxID) {} |