예제 #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;
 }