diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-08 17:01:53 -0300 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2016-08-08 17:01:53 -0300 |
commit | b5324f48c855b0c82ccf6da7d5a008fe5cf1c17e (patch) | |
tree | 5879b694e565cf445b6f3c9a59782f72ab7543d5 /Project/Bus.cpp | |
parent | 139b076149594e6cf508aea269b061aa8b428d9c (diff) | |
download | PSP.git-b5324f48c855b0c82ccf6da7d5a008fe5cf1c17e.tar.gz PSP.git-b5324f48c855b0c82ccf6da7d5a008fe5cf1c17e.tar.xz PSP.git-b5324f48c855b0c82ccf6da7d5a008fe5cf1c17e.zip |
Start Power Line implementation
gogogogo
Diffstat (limited to 'Project/Bus.cpp')
-rw-r--r-- | Project/Bus.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Project/Bus.cpp b/Project/Bus.cpp index 923d947..a7ebf59 100644 --- a/Project/Bus.cpp +++ b/Project/Bus.cpp @@ -9,6 +9,7 @@ Bus::Bus(wxPoint2DDouble position) : Element() } Bus::~Bus() {} + void Bus::Draw(wxPoint2DDouble translation, double scale) const { // Draw selection (layer 1) @@ -74,11 +75,7 @@ bool Bus::Contains(wxPoint2DDouble position) const return m_rect.Contains(ptR); } -bool Bus::Intersects(wxRect2DDouble rect) const -{ - return rect.Intersects(m_rect); -} - +bool Bus::Intersects(wxRect2DDouble rect) const { return rect.Intersects(m_rect); } bool Bus::PickboxContains(wxPoint2DDouble position) { m_activePickboxID = ID_PB_NONE; |