Callbacks and Messaging System:

I needed to add a smiley logic for the agents I have been developing at work. I planned smiley logic to manage itself, like a part of our brains. It was still going to be a part of AI, but the AI was not going to monitor and manage it closely as it does for the agent movement for example; an autonomous system in other words…

Blog post:

http://www.mcihanozer.com/tips/c/callbacks-and-messaging-system-event-driven-programming/