jkeywo / KGE

Kiwi Game Engine for 2D games
MIT License
1 stars 0 forks source link

Events #4

Closed jkeywo closed 10 years ago

jkeywo commented 10 years ago

Allow events to be defined by macro.

Events should have a base callback and a prioritised list of KGL::Actions to execute (the main event code happens as priority 0).

Also: KGE::Action and KGE::Signal need implementing.

jkeywo commented 10 years ago

Events need to be generic so that they can be added to any class, however that means template-ing both Events and Actions which is turning into a nightmare, especially when it comes to static initialisers.

I may use the include files to create action and event classes as a subclass of whatever they are supposed to be operating on, doing away with templates entirely. The MetaClass capability code is getting messy anyway so it could do with a clean up.