public void TestGenTargets() { // This should generate a 9 targets List <Target> targets = Target.GenTargets(1, 3, EquationDifficulty.EASY); Assert.IsTrue(targets.Count == 3); // This should generate a 24 targets targets = Target.GenTargets(4, 6, EquationDifficulty.EASY); Assert.IsTrue(targets.Count == 24); // This should generate a 0 targets targets = Target.GenTargets(0, 5, EquationDifficulty.EASY); Assert.IsTrue(targets.Count == 0); // This should generate 0 targets targets = Target.GenTargets(5, 0, EquationDifficulty.EASY); Assert.IsTrue(targets.Count == 0); }
private void NextWave() { EquationDifficulty diff = new EquationDifficulty(); if (_wave >= 10) { diff = EquationDifficulty.HARD; } else if (_wave >= 4) { diff = EquationDifficulty.INTERMEDIATE; } else { diff = EquationDifficulty.EASY; } _wave++; _targets = Target.GenTargets(_wave * 2, _wave * 1, diff); _waveOscilatingDir = Direction.RIGHT; }