How does one send an event to a specific listener? I do not want to put an event in the queue where anyone can register to receive it.
An example would be a card game, like bridge or poker. What kind of event(s) does one create to take care of distributing the cards? You cannot use the same event for everybody since anyone can listen for that event and know what cards everyone else has.
My thought was to create another function in the event manager to queue events to be sent to specific listeners.
This seems like a common kind of action in a game. Wondering if anyone else has encountered this or has a suggestion.
An example would be a card game, like bridge or poker. What kind of event(s) does one create to take care of distributing the cards? You cannot use the same event for everybody since anyone can listen for that event and know what cards everyone else has.
My thought was to create another function in the event manager to queue events to be sent to specific listeners.
This seems like a common kind of action in a game. Wondering if anyone else has encountered this or has a suggestion.
DaveK