Closed GoogleCodeExporter closed 8 years ago
If a method is private, there's usually a compelling encapsulation reason.
qb2TripSensor in particular can be extended by adding event listeners in the
subclass. All of qb2TripSensor's private methods exist only to dispatch events.
Let me know if there's some behavior that you cannot extend by using event
listeners.
Original comment by doug...@gmail.com
on 22 May 2011 at 4:54
well, I needed a contactPoint so sensor couldn't be ghost.
Original comment by t.wisnie...@gtempaccount.com
on 22 May 2011 at 9:53
You can just set the sensor to isGhost=false.
What's the specific reason for copying and pasting the whole qb2TripSensor
class (or extending it)? I'm not saying there definitely isn't a reason, but I
just don't understand what the problem is.
Original comment by doug...@gmail.com
on 23 May 2011 at 2:01
hmm, you know, you are quite right, it's so obvious I have to knock myslef on
the head into thinking straight again. ;/
Original comment by t.wisnie...@gtempaccount.com
on 24 May 2011 at 8:02
Hey, no problem...let me know if you have similar troubles extending other
classes (or this class). For sure there are other classes in the library that
will have some problems with extending that I need to fix. In general, I try
to make everything very encapsulated, so events are used in many places instead
of overridable protected methods.
Original comment by doug...@gmail.com
on 24 May 2011 at 1:49
Original issue reported on code.google.com by
t.wisnie...@gtempaccount.com
on 20 May 2011 at 6:55