Example #1
0
 private static void TestCombat(SimulationState state)
 {
     TestCombat(state, 1000);
 }
Example #2
0
        public static void Test()
        {
            SimulationState state = GetState();

            TestCombat(state);
        }
Example #3
0
 public static SimulationState TestDeserialization()
 {
     return(SimulationState.LoadFromFile("SimulationState.txt"));
 }
Example #4
0
 public static void TestSerialization(SimulationState state)
 {
     state.SafeToFile("SimulationState.txt");
 }
Example #5
0
 public void PerformAdditionalAttack(SimulationState state)
 {
     Attack(state, SecondaryAttackWeapon, PreviousAttackTarget, true);
 }
Example #6
0
 public void Attack(SimulationState state, CombatWeapon weapon, CombatUnit target, bool isSecondaryAttack)
 {
     Attack(state, weapon, target, isSecondaryAttack, 1);
 }