Until now, for each EventTypeEnum, we have created a corresponding subclass of...
Until now, for each EventTypeEnum, we have created a corresponding subclass of the class Event. However, if the event has no event specific information, there is really no need to create a subclass of the class Event. So, a method has been added to EventManager named sendSimpleEvent(const EventTypeEnum::Enum) that is available for sending these types of events. EventManager::sendSimpleEvent() does contain a switch statement on every EventTypeEnum so that the method can only be used on specific EventTypeEnum's.
parent
dc4491d4
Please register or sign in to comment