ColinGilbert / projectzombie

Automatically exported from code.google.com/p/projectzombie
0 stars 1 forks source link

Delegation interception handling #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The original plan was to have the ability to intercept delegate calls. One 
should be able to filter any sort of event in a generalize way so to intercept 
such delegations upstream from any downstream delegates. Use case: For example, 
in our GameMainState, we have various modules which correspond to the main 
state of our game. Say we want to have an SDK tray. And such that we want to 
disable ControlModule when SDK tray is in view. Currently, we are doing this 
the EngineController level by doing multiple checking in OIS::MouseEvent* 
listeners call-backs. We should implement the system such that when we register 
SdkTray (using the current system) we can specify interception delegates. We 
should be filter it to say we want a single delegate to handle ALL MOUSE 
events, or any particular mouse events. 

This is doable with the current system and SHOULD NOT involve major 
refactoring.  

Original issue reported on code.google.com by LLw...@gmail.com on 22 Aug 2010 at 7:13