Example #1
0
        public static AttackEntityEvent alloc(Entity p_sourceEntity, Entity p_targetEntity, Attack p_attack)
        {
            AttackEntityEvent l_instance = new AttackEntityEvent();

            l_instance.SourceEntity = p_sourceEntity;
            l_instance.TargetEntity = p_targetEntity;
            l_instance.Attack       = p_attack;
            return(l_instance);
        }
Example #2
0
 public static void attackEvent(Entity p_entity, EventQueue p_eventQueue,
                                Entity p_sourceEntity, Entity p_targetEntity, Attack p_attack)
 {
     EventQueue.enqueueEvent(p_eventQueue, AttackEntityEvent.alloc(p_sourceEntity, p_targetEntity, p_attack));
 }