Task4: event manager
daha edited this page Mar 21, 2012
·
2 revisions
- Player enter (name, position)
- Player leave (name, position)
- Game starting
- Game ending
- card, which card is given to which player, name/position?
- The "main-event" module should have wrapper functions, one per event, to trigger the events by calling gen_event:notify
- The "main-event" module should have function to add subscriber (which calls gen_event:add_handler)
- The "main-event" module should have functions to remove a subscriber