From 21917eb82ea56da2542e442ed2a5264479e68274 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 3 Mar 2023 19:30:42 -0500 Subject: [PATCH] I put the new Forgis on the Jeep --- .idea/runConfigurations.xml | 10 ++++ .../a2/gameobjects/DefenseStages.java | 46 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .idea/runConfigurations.xml create mode 100644 Assignment 2/src/ca/cosc3p91/a2/gameobjects/DefenseStages.java diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..797acea --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/Assignment 2/src/ca/cosc3p91/a2/gameobjects/DefenseStages.java b/Assignment 2/src/ca/cosc3p91/a2/gameobjects/DefenseStages.java new file mode 100644 index 0000000..6526b49 --- /dev/null +++ b/Assignment 2/src/ca/cosc3p91/a2/gameobjects/DefenseStages.java @@ -0,0 +1,46 @@ +package ca.cosc3p91.a2.gameobjects; + +import ca.cosc3p91.a2.util.Time; + +public class DefenseStages { + + public static class ArcherTowerStage1 extends DefenseStage { + public ArcherTowerStage1() { + super(100, 0, 0, new Time().offsetMinutes(1), 25, 250, 4,6); + } + } + + public static class ArcherTowerStage2 extends DefenseStage { + public ArcherTowerStage2() { + super(150, 0, 1, new Time().offsetMinutes(15), 25, 250, 8,8); + } + } + + public static class ArcherTowerStage3 extends DefenseStage { + public ArcherTowerStage3() { + super(200, 0, 2, new Time().offsetHours(1), 25, 250, 12,12); + } + } + + public static class CannonStage1 extends DefenseStage { + public CannonStage1() { + super(125, 0, 0, new Time().offsetMinutes(2), 25, 250, 8,4); + } + } + + public static class CannonStage2 extends DefenseStage { + public CannonStage2() { + super(175, 0, 1, new Time().offsetMinutes(20), 25, 250, 12,6); + } + } + + public static class CannonStage3 extends DefenseStage { + public CannonStage3() { + super(225, 0, 2, new Time().offsetHours(1), 25, 250, 14,8); + } + } + + public static DefenseStage[] archerTowerStages = {new DefenseStages.ArcherTowerStage1(), new DefenseStages.ArcherTowerStage2(), new DefenseStages.ArcherTowerStage3()}; + public static DefenseStage[] cannonStages = {new DefenseStages.CannonStage1(), new DefenseStages.CannonStage2(), new DefenseStages.CannonStage3()}; + +}