예제 #1
0
        private static void FireBehaviourEvent(EntBehaviour behaviour, string format)
        {
            if (behaviour == null) return;

            string evtStr = string.Format(format, behaviour.GetType().Name).ToUpper();
            behaviour.FireEvent(evtStr);
        }
예제 #2
0
 public virtual void Update(GameTime gameTime)
 {
     if (EntBehaviour != null)
     {
         EntBehaviour.Update(gameTime);
     }
     if (Bounds != null)
     {
         Bounds.Update(Position);
     }
     if (Sprite != null)
     {
         Sprite.Update(gameTime);
     }
 }
예제 #3
0
 public static void FireSwitchOut(EntBehaviour behaviour)
 {
     FireBehaviourEvent(behaviour, EVENT_SWITCH_OUT_FORMAT);
 }
예제 #4
0
 public BattleConflictAgitator(EntController agitator, EntUtils.ColliderType colliderType)
 {
     Controller = agitator;
     Behaviour = agitator.CurrentBehaviour;
     ColliderType = colliderType;
 }
예제 #5
0
 public static bool Overpowers(EntBehaviour a, EntBehaviour b)
 {
     return a.ConflictIndex > b.ConflictIndex;
 }