Пример #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;
 }
Пример #2
0
        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;
        }
Пример #3
0
 public bool Equals(BattleConflictAgitator other)
 {
     return Controller == other.Controller;
 }
Пример #4
0
 public string GetBehaviourName(BattleConflictAgitator a)
 {
     return a.Behaviour.GetType().Name;
 }
Пример #5
0
 public BattleConflictResolution(BattleConflictAgitator agitator, Result result, BattleConflict conflict)
 {
     _Agitator = agitator;
     _Result = result;
     _Conflict = conflict;
 }
Пример #6
0
 public BattleConflictPair(BattleConflictAgitator first, BattleConflictAgitator second)
 {
     First = first;
     Second = second;
 }