I'm not much of an object oriented programmer, but I've developed some pretty cool/complex data fields even so.
Quick question. I have a InputDelegate class that traps an onTap event, in order to switch between screen views. tap upper left/right of screen to change views, or tap center of the screen to return to the main screen. works great.
But I just created a "service" to display a pop-up (along with a beep tone) to alert the athlete of certain conditions. That pop-up automatically expires after about 8 seconds.
I'd like to enable a screen tap to dismiss the alert immediately. So in my "procedural" mindset, I could set a global variable when a pop-up is active, and in my InputDelegate function, just change the behavoir of the onTap() logic when popUp == true.
But I think there is probably a more elegant OO approach in which I override the function when a pop up is active so the pop up tap handler takes over during that time.
Thoughts? I know this is basic stuff for OO programmers. Just trying to learn how to do this right.
Thanks in advance!
-- Dave