GOOC - Game Oriented Object C
GOOC - Game Oriented Object C
14. Event System
14. Event System
One of the key points of interaction between game objects is through the event system. It allows one object to send context and data to another, which shall (or shall not) then react accordingly.
- GOOL also has a sophisticated event system. It is possible to send an event (with parameters) to another object or objects. The object may then choose to do what it wishes with that event, run some code, change state, ignore it, etc., and report something back to the caller.
- — Andy Gavin, Making Crash Bandicoot – GOOL – part 9
There are three ways to send events (send, broadcast, cascade) and two methods of handling a received event (interrupt table and event block).