Exemple #1
0
 public static bool Overpowers(BattleConflictAgitator a, BattleConflictAgitator b)
 {
     if (Overpowers(a.Behaviour, b.Behaviour)) {
         return true;
     } else if (a.Behaviour.GetType() == b.Behaviour.GetType()) {
         return a.Behaviour.ResolveConflictTie(a.Behaviour, b.Behaviour);
     }
     return false;
 }
        public static bool Equal(BattleConflictAgitator bca1, BattleConflictAgitator bca2)
        {
            if (OnlyOneNull((object) bca1, (object) bca2)) {
                return false;
            } else if (BothNull((object) bca1, (object) bca2)) {
                return true;
            }

            return bca1.Controller == bca2.Controller;
        }
 public bool Equals(BattleConflictAgitator other)
 {
     return Controller == other.Controller;
 }
Exemple #4
0
 public string GetBehaviourName(BattleConflictAgitator a)
 {
     return a.Behaviour.GetType().Name;
 }
 public BattleConflictResolution(BattleConflictAgitator agitator, Result result, BattleConflict conflict)
 {
     _Agitator = agitator;
     _Result = result;
     _Conflict = conflict;
 }
 public BattleConflictPair(BattleConflictAgitator first, BattleConflictAgitator second)
 {
     First = first;
     Second = second;
 }