Well after reading books everyone of those books kept bugging me to use events vs manual in game polling.
I have done some re-reading of events and then read some more on custom events. I still don't get some things and how they apply to games development.
So I'm starting to use events.
I have worked out how custom
events, could someone tell me if this is a good generic
model for game based events?http://members.optusnet.com.au/ksaho/something/ClassDiagram1.png
I really would like more insight on event driven coding in games.
For example, how would I implement collision detection under such a model?
Personally I really wonder how many events are needed and how big of an issue would it be to keep track of.
Wouldn't events make my game loop useless?
Technically speaking all I need is a single event in my main method which just yields or exits.
Can someone please provide some insight on how events should be used to make the development process as clean and understandable as possible?