Beispiel #1
0
        /**
         * Enqueues an event. It will be executed at end of update.
         */
        static void enqueueEvent(Actor ptr, DelayedEvent e)
        {
            delayedEvents.Add(ptr, e);

            //TODO Implementieren und in Originalimplementation schauen
            //            // Delete events take precedence over other events.
            //            if(e!=null&&e.type==Event.EVENT_REMOVE)
            //            {
            //                p.first.second.type=Event.EVENT_REMOVE;
            //            }
        }
Beispiel #2
0
 /**
  * Enqueues an event. It will be executed at end of update.
  */
 static void enqueueEvent(Actor ptr, DelayedEvent e)
 {
     //std::pair< DelayedEvents::iterator, bool > p =
     //    delayedEvents.insert(std::make_pair(ptr, e));
     //// Delete events take precedence over other events.
     //if (!p.second && e.type == EVENT_REMOVE)
     //{
     //    p.first.second.type = EVENT_REMOVE;
     //}
 }