PEvent *PAnimationInstance::createEvent(PEventTypeEnum event)
{
    PContext *context = m_manager->getContext();
    // TODO: replace the tailing P_NULL with this after PAnimationInstance
    // is refactored to a subclass of PObject.
    return context->eventManager()->createEvent(event, P_NULL);
}
Exemplo n.º 2
0
PEvent* PTimer::createEvent(PEventTypeEnum eventType)
{
    // TODO: manage the memory allocation effectively.
    PContext *context = m_manager->context();
    return context->eventManager()->createEvent(eventType, P_NULL);
}