Click on the above image to open the Flock Demo
The source code for this demo can be found on trunk here:
The rough idea is as follows:
- Place your "Domain Model" on the map blackboard; complete its own events and all the stuff you would normally do.
- Create a "Map Graphic" that checks the map blackboard - if it finds the domain model objects it can draw them; and listen to them if they are the kind of thing that moves around.
- If you needed to make any custom tools you could also check the map blackboard and poke away at your domain model objects directly