commit 9c6e536bffecfce634b9ecd169be213fd4b4143a Author: Brett Laptop Date: Wed Mar 1 12:38:32 2023 -0500 init repo diff --git a/Assignment 1/A1_TowerDefenseGame v2.uml b/Assignment 1/A1_TowerDefenseGame v2.uml new file mode 100644 index 0000000..b00617e --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame v2.uml @@ -0,0 +1,6561 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + +newOperation() + + + + + + + + + Collector + + + + + + + + + + + + + + + + + + + + + + + + + + + + Worker + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() + +getDamage() + +getRange() + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + +goldCapacity : int + +ironCapacity : int + +woodCapacity : int + + + + + + + + +getGoldCapacity() + +getIronCapacity() + +getWoodCapacity() + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest() + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + Player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + +cost : int + + + + + + + + +getLevel() + +getHealth() + +getCost() + +getUpgradeCost() + +upgrade() + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig28" + sourceFigNode="Fig17" + destFigNode="Fig28" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig28" + sourceFigNode="Fig22" + destFigNode="Fig28" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig28" + sourceFigNode="Fig14" + destFigNode="Fig28" + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #cost : int + #requiredVillageLevel : int + + + + + + + + +getHealthChange() + +getCost() + +getRequiredVillageLevel() + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig28" + destPortFig="Fig32" + sourceFigNode="Fig28" + destFigNode="Fig32" + + + + + + + + + + + + + + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig35.0" + destPortFig="Fig32" + sourceFigNode="Fig35" + destFigNode="Fig32" + + + + + + + + + + + + + + + + + + + + + + UserInterface + + + + + + + + + + + enclosingFig="Fig37" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig27" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig40.0" + destPortFig="Fig37" + sourceFigNode="Fig40" + destFigNode="Fig37" + + + + + + + + + + + enclosingFig="Fig40" + + + + + GameEngine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig40" + + + + + Map + + + + + + + + + + + + + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + + + + + sourcePortFig="Fig0" + destPortFig="Fig37" + sourceFigNode="Fig0" + destFigNode="Fig37" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig0" + sourceFigNode="Fig27" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig37" + destPortFig="Fig0" + sourceFigNode="Fig37" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig40" + destPortFig="Fig0" + sourceFigNode="Fig40" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig33" + destPortFig="Fig28" + sourceFigNode="Fig33" + destFigNode="Fig28" + + + + + + + + + + + + + + sourcePortFig="Fig43" + destPortFig="Fig28" + sourceFigNode="Fig43" + destFigNode="Fig28" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig43" + sourceFigNode="Fig42" + destFigNode="Fig43" + + + + + + + + + + + + + + sourcePortFig="Fig43" + destPortFig="Fig8" + sourceFigNode="Fig43" + destFigNode="Fig8" + + + + + + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame v2.uml~ b/Assignment 1/A1_TowerDefenseGame v2.uml~ new file mode 100644 index 0000000..1d19609 --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame v2.uml~ @@ -0,0 +1,6561 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + +newOperation() + + + + + + + + + Collector + + + + + + + + + + + + + + + + + + + + + + + + + + + + Worker + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() + +getDamage() + +getRange() + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + +goldCapacity : int + +ironCapacity : int + +woodCapacity : int + + + + + + + + +getGoldCapacity() + +getIronCapacity() + +getWoodCapacity() + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest() + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + Player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + +cost : int + + + + + + + + +getLevel() + +getHealth() + +getCost() + +getUpgradeCost() + +upgrade() + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig28" + sourceFigNode="Fig17" + destFigNode="Fig28" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig28" + sourceFigNode="Fig22" + destFigNode="Fig28" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig28" + sourceFigNode="Fig14" + destFigNode="Fig28" + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #cost : int + #requiredVillageLevel : int + + + + + + + + +getHealthChange() + +getCost() + +getRequiredVillageLevel() + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig28" + destPortFig="Fig32" + sourceFigNode="Fig28" + destFigNode="Fig32" + + + + + + + + + + + + + + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig35.0" + destPortFig="Fig32" + sourceFigNode="Fig35" + destFigNode="Fig32" + + + + + + + + + + + + + + + + + + + + + + UserInterface + + + + + + + + + + + enclosingFig="Fig37" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig27" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig40.0" + destPortFig="Fig37" + sourceFigNode="Fig40" + destFigNode="Fig37" + + + + + + + + + + + enclosingFig="Fig40" + + + + + GameEngine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig40" + + + + + Map + + + + + + + + + + + + + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + + + + + sourcePortFig="Fig0" + destPortFig="Fig37" + sourceFigNode="Fig0" + destFigNode="Fig37" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig0" + sourceFigNode="Fig27" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig37" + destPortFig="Fig0" + sourceFigNode="Fig37" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig40" + destPortFig="Fig0" + sourceFigNode="Fig40" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig33" + destPortFig="Fig28" + sourceFigNode="Fig33" + destFigNode="Fig28" + + + + + + + + + + + + + + sourcePortFig="Fig43" + destPortFig="Fig28" + sourceFigNode="Fig43" + destFigNode="Fig28" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig43" + sourceFigNode="Fig42" + destFigNode="Fig43" + + + + + + + + + + + + + + sourcePortFig="Fig43" + destPortFig="Fig8" + sourceFigNode="Fig43" + destFigNode="Fig8" + + + + + + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame.uml b/Assignment 1/A1_TowerDefenseGame.uml new file mode 100644 index 0000000..a5d3ddf --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame.uml @@ -0,0 +1,6470 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + +newOperation() + + + + + enclosingFig="LAYER_NULL" + + + + + Collector + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Worker + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Infantry + + + + + + + + + + + + + +health : float + +damage : float + +range : Tile + + + + + + + + +attack() + + + + + enclosingFig="LAYER_NULL" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + +newOperation() + + + + + enclosingFig="LAYER_NULL" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Village_Hall + + + + + + + + + + + + + +goldCapacity : int + +ironCapacity : int + +woodCapacity : int + + + + + + + + +getGoldCapacity() + +getIronCapacity() + +getWoodCapacity() + + + + + enclosingFig="LAYER_NULL" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + + + + + + + + + + + + + + + + + + + + Should possibly +consider replacing infantry with +enum? + + + + + + + + + + + + + + + + Player + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + +cost : int + + + + + + + + +getLevel() + +getHealth() + +getCost() + +getUpgradeCost() + +upgrade() + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig29" + sourceFigNode="Fig17" + destFigNode="Fig29" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig29" + sourceFigNode="Fig22" + destFigNode="Fig29" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig29" + sourceFigNode="Fig14" + destFigNode="Fig29" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #cost : int + #requiredVillageLevel : int + + + + + + + + +getHealthChange() + +getCost() + +getRequiredVillageLevel() + + + + + enclosingFig="LAYER_NULL" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig34" + destPortFig="Fig29" + sourceFigNode="Fig34" + destFigNode="Fig29" + + + + + + + + + + + + + + sourcePortFig="Fig29" + destPortFig="Fig33" + sourceFigNode="Fig29" + destFigNode="Fig33" + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig37.0" + destPortFig="Fig33" + sourceFigNode="Fig37" + destFigNode="Fig33" + + + + + + + + + + + + + + + + + + + + + + UserInterface + + + + + + + + + + + enclosingFig="Fig39" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig28" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + Game + + + + + + + + + + + sourcePortFig="Fig42.0" + destPortFig="Fig39" + sourceFigNode="Fig42" + destFigNode="Fig39" + + + + + + + + + + + enclosingFig="Fig42" + + + + + GameEngine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig42" + + + + + Map + + + + + + + + + + + + + + + + + + + + + + + + sourcePortFig="Fig45" + destPortFig="Fig29" + sourceFigNode="Fig45" + destFigNode="Fig29" + + + + + + + + + + + + + + sourcePortFig="Fig44" + destPortFig="Fig45" + sourceFigNode="Fig44" + destFigNode="Fig45" + + + + + + + + + + + + + + sourcePortFig="Fig0" + destPortFig="Fig39" + sourceFigNode="Fig0" + destFigNode="Fig39" + + + + + + + + + + sourcePortFig="Fig28" + destPortFig="Fig0" + sourceFigNode="Fig28" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig39" + destPortFig="Fig0" + sourceFigNode="Fig39" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig0" + sourceFigNode="Fig42" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame.uml~ b/Assignment 1/A1_TowerDefenseGame.uml~ new file mode 100644 index 0000000..44e02f0 --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame.uml~ @@ -0,0 +1,6503 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + +newOperation() + + + + + enclosingFig="LAYER_NULL" + + + + + Collector + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Worker + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Infantry + + + + + + + + + + + + + +health : float + +damage : float + +range : Tile + + + + + + + + +attack() + + + + + enclosingFig="LAYER_NULL" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + +newOperation() + + + + + enclosingFig="LAYER_NULL" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Village_Hall + + + + + + + + + + + + + +goldCapacity : int + +ironCapacity : int + +woodCapacity : int + + + + + + + + +getGoldCapacity() + +getIronCapacity() + +getWoodCapacity() + + + + + enclosingFig="LAYER_NULL" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Farm + + + + + + + + + + + + + +resource : String + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + + + + + + + + + + + + + + + + + + + + Should possibly +consider replacing infantry with +enum? + + + + + + + + + + + + + + + + Player + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + +cost : int + + + + + + + + +getLevel() + +getHealth() + +getCost() + +getUpgradeCost() + +upgrade() + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig29" + sourceFigNode="Fig17" + destFigNode="Fig29" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig29" + sourceFigNode="Fig22" + destFigNode="Fig29" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig29" + sourceFigNode="Fig14" + destFigNode="Fig29" + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #cost : int + #requiredVillageLevel : int + + + + + + + + +getHealthChange() + +getCost() + +getRequiredVillageLevel() + + + + + enclosingFig="LAYER_NULL" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig34" + destPortFig="Fig29" + sourceFigNode="Fig34" + destFigNode="Fig29" + + + + + + + + + + + + + + sourcePortFig="Fig29" + destPortFig="Fig33" + sourceFigNode="Fig29" + destFigNode="Fig33" + + + + + + + + + + + + + + enclosingFig="LAYER_NULL" + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig37.0" + destPortFig="Fig33" + sourceFigNode="Fig37" + destFigNode="Fig33" + + + + + + + + + + + + + + + + + + + + + + UserInterface + + + + + + + + + + + enclosingFig="Fig39" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig28" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + Game + + + + + + + + + + + sourcePortFig="Fig42.0" + destPortFig="Fig39" + sourceFigNode="Fig42" + destFigNode="Fig39" + + + + + + + + + + + enclosingFig="Fig42" + + + + + GameEngine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig42" + + + + + Map + + + + + + + + + + + + + + + + + + + + + + + + sourcePortFig="Fig45" + destPortFig="Fig29" + sourceFigNode="Fig45" + destFigNode="Fig29" + + + + + + + + + + + + + + sourcePortFig="Fig44" + destPortFig="Fig45" + sourceFigNode="Fig44" + destFigNode="Fig45" + + + + + + + + + + + + + + sourcePortFig="Fig0" + destPortFig="Fig39" + sourceFigNode="Fig0" + destFigNode="Fig39" + + + + + + + + + + sourcePortFig="Fig28" + destPortFig="Fig0" + sourceFigNode="Fig28" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig39" + destPortFig="Fig0" + sourceFigNode="Fig39" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig0" + sourceFigNode="Fig42" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame_final.uml b/Assignment 1/A1_TowerDefenseGame_final.uml new file mode 100644 index 0000000..ac9ce2d --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame_final.uml @@ -0,0 +1,6561 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + +newOperation() + + + + + + + + + Collector + + + + + + + + + + + + + + + + + + + + + + + + + + + + Worker + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() + +getDamage() + +getRange() + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + +goldCapacity : int + +ironCapacity : int + +woodCapacity : int + + + + + + + + +getGoldCapacity() + +getIronCapacity() + +getWoodCapacity() + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest() + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + +cost : int + + + + + + + + +getLevel() + +getHealth() + +getCost() + +getUpgradeCost() + +upgrade() + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig28" + sourceFigNode="Fig17" + destFigNode="Fig28" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig28" + sourceFigNode="Fig22" + destFigNode="Fig28" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig28" + sourceFigNode="Fig14" + destFigNode="Fig28" + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #cost : int + #requiredVillageLevel : int + + + + + + + + +getHealthChange() + +getCost() + +getRequiredVillageLevel() + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig28" + destPortFig="Fig32" + sourceFigNode="Fig28" + destFigNode="Fig32" + + + + + + + + + + + + + + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig35.0" + destPortFig="Fig32" + sourceFigNode="Fig35" + destFigNode="Fig32" + + + + + + + + + + + + + + + + + + + + + + userinterface + + + + + + + + + + + enclosingFig="Fig37" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig27" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig40.0" + destPortFig="Fig37" + sourceFigNode="Fig40" + destFigNode="Fig37" + + + + + + + + + + + enclosingFig="Fig40" + + + + + GameEngine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig40" + + + + + Map + + + + + + + + + + + + + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + + + + + sourcePortFig="Fig0" + destPortFig="Fig37" + sourceFigNode="Fig0" + destFigNode="Fig37" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig0" + sourceFigNode="Fig27" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig37" + destPortFig="Fig0" + sourceFigNode="Fig37" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig40" + destPortFig="Fig0" + sourceFigNode="Fig40" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig33" + destPortFig="Fig28" + sourceFigNode="Fig33" + destFigNode="Fig28" + + + + + + + + + + + + + + sourcePortFig="Fig43" + destPortFig="Fig28" + sourceFigNode="Fig43" + destFigNode="Fig28" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig43" + sourceFigNode="Fig42" + destFigNode="Fig43" + + + + + + + + + + + + + + sourcePortFig="Fig43" + destPortFig="Fig8" + sourceFigNode="Fig43" + destFigNode="Fig8" + + + + + + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame_final_v2.uml b/Assignment 1/A1_TowerDefenseGame_final_v2.uml new file mode 100644 index 0000000..2824297 --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame_final_v2.uml @@ -0,0 +1,7991 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Collector + + + + + + + + + + + + + -averageCollectionRate : Integer + + + + + + + + +getCollectionRate() + + + + + enclosingFig="Fig0" + + + + + Worker + + + + + + + + + + + + + -currentlyBuilding : boolean + + + + + + + + +isCurrentlyBuilding() : boolean + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() + +getDamage() + +getRange() + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + -goldCapacity : int + -ironCapacity : int + -woodCapacity : int + + + + + + + + +getGoldCapacity() : int + +getIronCapacity() : int + +getWoodCapacity() : int + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + +getPopulationContribution() : int + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest(Village_Hall) + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + -goldCost : int + -ironCost : int + -woodCost : int + -buildTime : int + + + + + + + + +getLevel() + +getHealth() + +getCost(String) + +getUpgradeCost() + +upgrade() + +getBuildTime() : int + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig27" + sourceFigNode="Fig17" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig27" + sourceFigNode="Fig22" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig27" + sourceFigNode="Fig14" + destFigNode="Fig27" + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #goldCost : int + #requiredVillageLevel : int + #upgradeTime : int + #ironCost : int + #woodCost : int + + + + + + + + +getHealthChange() + +getCost(String) : int + +getRequiredVillageLevel() : int + +getUpgradeTime() : int + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig31" + sourceFigNode="Fig27" + destFigNode="Fig31" + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig34.0" + destPortFig="Fig31" + sourceFigNode="Fig34" + destFigNode="Fig31" + + + + + + + + + + + + + + + + + + + + + + userinterface + + + + + + + + + + + enclosingFig="Fig36" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig26" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig39.0" + destPortFig="Fig36" + sourceFigNode="Fig39" + destFigNode="Fig36" + + + + + + + + + + + enclosingFig="Fig39" + + + + + GameEngine + + + + + + + + + + + + + -player : Player + -pillageFactor : int + -currentTime : int + + + + + + + + +attackVIllage(Map) + +generateMap() : Map + +getScore(Map) + + + + + enclosingFig="Fig39" + + + + + Map + + + + + + + + + + + + + -townHall : Village_Hall + -guardTime : int + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + +build(Village_Hall,Tile,Building) + +getGuardTime() : int + +setGuardTime() + + + + + sourcePortFig="Fig0" + destPortFig="Fig36" + sourceFigNode="Fig0" + destFigNode="Fig36" + + + + + + + + + + sourcePortFig="Fig26" + destPortFig="Fig0" + sourceFigNode="Fig26" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig36" + destPortFig="Fig0" + sourceFigNode="Fig36" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig39" + destPortFig="Fig0" + sourceFigNode="Fig39" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig32" + destPortFig="Fig27" + sourceFigNode="Fig32" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig27" + sourceFigNode="Fig42" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig41" + destPortFig="Fig42" + sourceFigNode="Fig41" + destFigNode="Fig42" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig8" + sourceFigNode="Fig42" + destFigNode="Fig8" + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ VillageStage + + + + + + + + + + + + + #goldCapacityIncrease : int + #ironCapacityIncrease : int + #woodCapacityIncrease : int + + + + + + + + +getWoodCapacityIncrease() : int + +getIronCapacityIncrease() : int + +getWoodCapacityIncrease() : int + + + + + enclosingFig="Fig0" + + + + + ResourceStage + + + + + + + + + + + + + #harvestRateIncrease : int + + + + + + + + +getHarvestRateIncrease() : int + + + + + sourcePortFig="Fig55.0" + destPortFig="Fig31" + sourceFigNode="Fig55" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig56.0" + destPortFig="Fig31" + sourceFigNode="Fig56" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig8" + sourceFigNode="Fig27" + destFigNode="Fig8" + + + + + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame_final_v2.uml~ b/Assignment 1/A1_TowerDefenseGame_final_v2.uml~ new file mode 100644 index 0000000..ea24804 --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame_final_v2.uml~ @@ -0,0 +1,7991 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Collector + + + + + + + + + + + + + -averageCollectionRate : Integer + + + + + + + + +getCollectionRate() + + + + + enclosingFig="Fig0" + + + + + Worker + + + + + + + + + + + + + -currentlyBuilding : boolean + + + + + + + + +isCurrentlyBuilding() : boolean + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() + +getDamage() + +getRange() + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + -goldCapacity : int + -ironCapacity : int + -woodCapacity : int + + + + + + + + +getGoldCapacity() : int + +getIronCapacity() : int + +getWoodCapacity() : int + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + +getPopulationContribution() : int + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest(Village_Hall) + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + -goldCost : int + -ironCost : int + -woodCost : int + -buildTime : int + + + + + + + + +getLevel() + +getHealth() + +getCost(String) + +getUpgradeCost() + +upgrade() + +getBuildTime() : int + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig27" + sourceFigNode="Fig17" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig27" + sourceFigNode="Fig22" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig27" + sourceFigNode="Fig14" + destFigNode="Fig27" + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #goldCost : int + #requiredVillageLevel : int + #upgradeTime : int + #ironCost : int + #woodCost : int + + + + + + + + +getHealthChange() + +getCost(String) : int + +getRequiredVillageLevel() : int + +getUpgradeTime() : int + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig31" + sourceFigNode="Fig27" + destFigNode="Fig31" + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig34.0" + destPortFig="Fig31" + sourceFigNode="Fig34" + destFigNode="Fig31" + + + + + + + + + + + + + + + + + + + + + + userinterface + + + + + + + + + + + enclosingFig="Fig36" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig26" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig39.0" + destPortFig="Fig36" + sourceFigNode="Fig39" + destFigNode="Fig36" + + + + + + + + + + + enclosingFig="Fig39" + + + + + GameEngine + + + + + + + + + + + + + -player : Player + -pillageFactor : int + -currentTime : int + + + + + + + + +attackVIllage(Map) + +generateMap() : Map + +getScore(Map) + + + + + enclosingFig="Fig39" + + + + + Map + + + + + + + + + + + + + -townHall : Village_Hall + -guardTime : int + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + +build(Village_Hall,Tile,Building) + +getGuardTime() : int + +setGuardTime() + + + + + sourcePortFig="Fig0" + destPortFig="Fig36" + sourceFigNode="Fig0" + destFigNode="Fig36" + + + + + + + + + + sourcePortFig="Fig26" + destPortFig="Fig0" + sourceFigNode="Fig26" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig36" + destPortFig="Fig0" + sourceFigNode="Fig36" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig39" + destPortFig="Fig0" + sourceFigNode="Fig39" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig32" + destPortFig="Fig27" + sourceFigNode="Fig32" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig27" + sourceFigNode="Fig42" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig41" + destPortFig="Fig42" + sourceFigNode="Fig41" + destFigNode="Fig42" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig8" + sourceFigNode="Fig42" + destFigNode="Fig8" + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ VillageStage + + + + + + + + + + + + + #goldCapacityIncrease : int + #ironCapacityIncrease : int + #woodCapacityIncrease : int + + + + + + + + +getWoodCapacityIncrease() : int + +getIronCapacityIncrease() : int + +getWoodCapacityIncrease() : int + + + + + enclosingFig="Fig0" + + + + + ResourceStage + + + + + + + + + + + + + #harvestRateIncrease : int + + + + + + + + +getHarvestRateIncrease() : int + + + + + sourcePortFig="Fig55.0" + destPortFig="Fig31" + sourceFigNode="Fig55" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig56.0" + destPortFig="Fig31" + sourceFigNode="Fig56" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig8" + sourceFigNode="Fig27" + destFigNode="Fig8" + + + + + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame_final_v3.uml b/Assignment 1/A1_TowerDefenseGame_final_v3.uml new file mode 100644 index 0000000..cb6d83d --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame_final_v3.uml @@ -0,0 +1,8033 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Collector + + + + + + + + + + + + + -averageCollectionRate : Integer + + + + + + + + +getCollectionRate() : int + + + + + enclosingFig="Fig0" + + + + + Worker + + + + + + + + + + + + + -currentlyBuilding : boolean + + + + + + + + +isCurrentlyBuilding() : boolean + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() : int + +getDamage() : int + +getRange() : int + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + -goldCapacity : int + -ironCapacity : int + -woodCapacity : int + + + + + + + + +getGoldCapacity() : int + +getIronCapacity() : int + +getWoodCapacity() : int + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + +getPopulationContribution() : int + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest(Village_Hall) + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + -goldCost : int + -ironCost : int + -woodCost : int + -buildTime : int + + + + + + + + +getLevel() : int + +getHealth() : int + +getCost(String) : int + +getUpgradeCost() : int + +upgrade() + +getBuildTime() : int + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig27" + sourceFigNode="Fig17" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig27" + sourceFigNode="Fig22" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig27" + sourceFigNode="Fig14" + destFigNode="Fig27" + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #goldCost : int + #requiredVillageLevel : int + #upgradeTime : int + #ironCost : int + #woodCost : int + + + + + + + + +getHealthChange() + +getCost(String) : int + +getRequiredVillageLevel() : int + +getUpgradeTime() : int + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig31" + sourceFigNode="Fig27" + destFigNode="Fig31" + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() : int + +getRangeChange() : int + + + + + sourcePortFig="Fig34.0" + destPortFig="Fig31" + sourceFigNode="Fig34" + destFigNode="Fig31" + + + + + + + + + + + + + + + + + + + + + + userinterface + + + + + + + + + + + enclosingFig="Fig36" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig26" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig39.0" + destPortFig="Fig36" + sourceFigNode="Fig39" + destFigNode="Fig36" + + + + + + + + + + + enclosingFig="Fig39" + + + + + GameEngine + + + + + + + + + + + + + -player : Player + -pillageFactor : int + -currentTime : int + + + + + + + + +attackVIllage(Map) + +generateMap() : Map + +getScore(Map) + + + + + enclosingFig="Fig39" + + + + + Map + + + + + + + + + + + + + -townHall : Village_Hall + -guardTime : int + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + +build(Village_Hall,Tile,Building) + +getGuardTime() : int + +setGuardTime() + + + + + sourcePortFig="Fig0" + destPortFig="Fig36" + sourceFigNode="Fig0" + destFigNode="Fig36" + + + + + + + + + + sourcePortFig="Fig26" + destPortFig="Fig0" + sourceFigNode="Fig26" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig36" + destPortFig="Fig0" + sourceFigNode="Fig36" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig39" + destPortFig="Fig0" + sourceFigNode="Fig39" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig32" + destPortFig="Fig27" + sourceFigNode="Fig32" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig27" + sourceFigNode="Fig42" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig41" + destPortFig="Fig42" + sourceFigNode="Fig41" + destFigNode="Fig42" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig8" + sourceFigNode="Fig42" + destFigNode="Fig8" + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ VillageStage + + + + + + + + + + + + + #goldCapacityIncrease : int + #ironCapacityIncrease : int + #woodCapacityIncrease : int + + + + + + + + +getWoodCapacityIncrease() : int + +getIronCapacityIncrease() : int + +getWoodCapacityIncrease() : int + + + + + enclosingFig="Fig0" + + + + + ResourceStage + + + + + + + + + + + + + #harvestRateIncrease : int + + + + + + + + +getHarvestRateIncrease() : int + + + + + sourcePortFig="Fig55.0" + destPortFig="Fig31" + sourceFigNode="Fig55" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig56.0" + destPortFig="Fig31" + sourceFigNode="Fig56" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig8" + sourceFigNode="Fig27" + destFigNode="Fig8" + + + + + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/A1_TowerDefenseGame_final_v3.uml~ b/Assignment 1/A1_TowerDefenseGame_final_v3.uml~ new file mode 100644 index 0000000..6128533 --- /dev/null +++ b/Assignment 1/A1_TowerDefenseGame_final_v3.uml~ @@ -0,0 +1,6865 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + true + + + + + + true + + + + + + true + + + + + + true + + + + + + true + + + + + + true + + + + + + true + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Collector + + + + + + + + + + + + + -averageCollectionRate : Integer + + + + + + + + +getCollectionRate() + + + + + enclosingFig="Fig0" + + + + + Worker + + + + + + + + + + + + + -currentlyBuilding : boolean + + + + + + + + +isCurrentlyBuilding() : boolean + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() + +getDamage() + +getRange() + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + -goldCapacity : int + -ironCapacity : int + -woodCapacity : int + + + + + + + + +getGoldCapacity() : int + +getIronCapacity() : int + +getWoodCapacity() : int + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + +getPopulationContribution() : int + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest(Village_Hall) + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + -goldCost : int + -ironCost : int + -woodCost : int + -buildTime : int + + + + + + + + +getLevel() + +getHealth() + +getCost(String) + +getUpgradeCost() + +upgrade() + +getBuildTime() : int + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig27" + sourceFigNode="Fig17" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig27" + sourceFigNode="Fig22" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig27" + sourceFigNode="Fig14" + destFigNode="Fig27" + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #goldCost : int + #requiredVillageLevel : int + #upgradeTime : int + #ironCost : int + #woodCost : int + + + + + + + + +getHealthChange() + +getCost(String) : int + +getRequiredVillageLevel() : int + +getUpgradeTime() : int + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig31" + sourceFigNode="Fig27" + destFigNode="Fig31" + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() + +getRangeChange() + + + + + sourcePortFig="Fig34.0" + destPortFig="Fig31" + sourceFigNode="Fig34" + destFigNode="Fig31" + + + + + + + + + + + + + + + + + + + + + + userinterface + + + + + + + + + + + enclosingFig="Fig36" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig26" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig39.0" + destPortFig="Fig36" + sourceFigNode="Fig39" + destFigNode="Fig36" + + + + + + + + + + + enclosingFig="Fig39" + + + + + GameEngine + + + + + + + + + + + + + -player : Player + -pillageFactor : int + -currentTime : int + + + + + + + + +attackVIllage(Map) + +generateMap() : Map + +getScore(Map) + + + + + enclosingFig="Fig39" + + + + + Map + + + + + + + + + + + + + -townHall : Village_Hall + -guardTime : int + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + +build(Village_Hall,Tile,Building) + +getGuardTime() : int + +setGuardTime() + + + + + sourcePortFig="Fig0" + destPortFig="Fig36" + sourceFigNode="Fig0" + destFigNode="Fig36" + + + + + + + + + + sourcePortFig="Fig26" + destPortFig="Fig0" + sourceFigNode="Fig26" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig36" + destPortFig="Fig0" + sourceFigNode="Fig36" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig39" + destPortFig="Fig0" + sourceFigNode="Fig39" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig32" + destPortFig="Fig27" + sourceFigNode="Fig32" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig27" + sourceFigNode="Fig42" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig41" + destPortFig="Fig42" + sourceFigNode="Fig41" + destFigNode="Fig42" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig8" + sourceFigNode="Fig42" + destFigNode="Fig8" + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ VillageStage + + + + + + + + + + + + + #goldCapacityIncrease : int + #ironCapacityIncrease : int + #woodCapacityIncrease : int + + + + + + + + +getWoodCapacityIncrease() : int + +getIronCapacityIncrease() : int + +getWoodCapacityIncrease() : int + + + + + enclosingFig="Fig0" + + + + + ResourceStage + + + + + + + + + + + + + #harvestRateIncrease : int + + + + + + + + +getHarvestRateIncrease() : int + + + + + sourcePortFig="Fig55.0" + destPortFig="Fig31" + sourceFigNode="Fig55" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig56.0" + destPortFig="Fig31" + sourceFigNode="Fig56" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig8" + sourceFigNode="Fig27" + destFigNode="Fig8" + + + + + + + + + + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/COSC3P91-A1_Description_BrettMichael.pdf b/Assignment 1/COSC3P91-A1_Description_BrettMichael.pdf new file mode 100644 index 0000000..5d7c132 Binary files /dev/null and b/Assignment 1/COSC3P91-A1_Description_BrettMichael.pdf differ diff --git a/Assignment 1/Submission.zip b/Assignment 1/Submission.zip new file mode 100644 index 0000000..cdcce0d Binary files /dev/null and b/Assignment 1/Submission.zip differ diff --git a/Assignment 1/Submission_v2.zip b/Assignment 1/Submission_v2.zip new file mode 100644 index 0000000..36dd588 Binary files /dev/null and b/Assignment 1/Submission_v2.zip differ diff --git a/Assignment 1/Submission_v2/A1_TowerDefenseGame_final_v3.uml b/Assignment 1/Submission_v2/A1_TowerDefenseGame_final_v3.uml new file mode 100644 index 0000000..cb6d83d --- /dev/null +++ b/Assignment 1/Submission_v2/A1_TowerDefenseGame_final_v3.uml @@ -0,0 +1,8033 @@ + + + + + + + 0.35.1 + + + + + + UML 1.4 + false + true + true + true + false + false + false + true + false + true + 1 + true + Dialog + 12 + 0 + Class Diagram + + + + + + + + + + + + + + UML 1.4 + + + GoodPractices + + + CodeGeneration + + + + + ArgoUML (using Netbeans XMI Writer version 1.0) + 0.35.1(6) revised on $Date: 2012-12-30 14:06:01 +0100 (Sun, 30 Dec 2012) $ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Abstraction + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + gameobjects + + + + + + + + + + + enclosingFig="Fig0" + + + + + Catapult + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Knight + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Archer + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Soldier + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Collector + + + + + + + + + + + + + -averageCollectionRate : Integer + + + + + + + + +getCollectionRate() : int + + + + + enclosingFig="Fig0" + + + + + Worker + + + + + + + + + + + + + -currentlyBuilding : boolean + + + + + + + + +isCurrentlyBuilding() : boolean + + + + + enclosingFig="Fig0" + + + + + Infantry + + + + + + + + + + + + + -health : int + -damage : int + -range : int + + + + + + + + +attack(Building) + +getHealth() : int + +getDamage() : int + +getRange() : int + + + + + enclosingFig="Fig0" + + + + + Inhabitant + + + + + + «interface» + + + + + + + + +move(Tile) + +getPosition() + + + + + sourcePortFig="Fig7.0" + destPortFig="Fig8.0" + sourceFigNode="Fig7" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig5.0" + destPortFig="Fig8.0" + sourceFigNode="Fig5" + destFigNode="Fig8" + + + + + + + + + + sourcePortFig="Fig6.0" + destPortFig="Fig8.0" + sourceFigNode="Fig6" + destFigNode="Fig8" + + + + + + + + + + enclosingFig="Fig0" + + + + + ArcherTower + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Cannon + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + DefenseBuilding + + + + + + + + + + + + + +damage : int + +range : int + + + + + + + + +attack(Infantry) + + + + + sourcePortFig="Fig12.0" + destPortFig="Fig14" + sourceFigNode="Fig12" + destFigNode="Fig14" + + + + + + + + + + sourcePortFig="Fig13.0" + destPortFig="Fig14" + sourceFigNode="Fig13" + destFigNode="Fig14" + + + + + + + + + + enclosingFig="Fig0" + + + + + Village_Hall + + + + + + + + + + + + + -goldCapacity : int + -ironCapacity : int + -woodCapacity : int + + + + + + + + +getGoldCapacity() : int + +getIronCapacity() : int + +getWoodCapacity() : int + + + + + enclosingFig="Fig0" + + + + + GoldMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + LumberMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + IronMine + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + + Farm + + + + + + + + + + + + + + + + + + + + +getPopulationContribution() : int + + + + + enclosingFig="Fig0" + + + + + ResourceBuidling + + + + + + + + + + + + + +resource : String + -harvest_rate : int + + + + + + + + +harvest(Village_Hall) + + + + + sourcePortFig="Fig18.0" + destPortFig="Fig22" + sourceFigNode="Fig18" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig19.0" + destPortFig="Fig22" + sourceFigNode="Fig19" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig20.0" + destPortFig="Fig22" + sourceFigNode="Fig20" + destFigNode="Fig22" + + + + + + + + + + + + + + + + + + + + + + player + + + + + + + + + + + enclosingFig="Fig0" + + + + + Building + + + + + + + + + + + + + -level : int + -health : int + -stages : Stage + -goldCost : int + -ironCost : int + -woodCost : int + -buildTime : int + + + + + + + + +getLevel() : int + +getHealth() : int + +getCost(String) : int + +getUpgradeCost() : int + +upgrade() + +getBuildTime() : int + + + + + sourcePortFig="Fig17.0" + destPortFig="Fig27" + sourceFigNode="Fig17" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig22.0" + destPortFig="Fig27" + sourceFigNode="Fig22" + destFigNode="Fig27" + + + + + + + + + + sourcePortFig="Fig14.0" + destPortFig="Fig27" + sourceFigNode="Fig14" + destFigNode="Fig27" + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ Stage + + + + + + + + + + + + + #dHealth : int + #goldCost : int + #requiredVillageLevel : int + #upgradeTime : int + #ironCost : int + #woodCost : int + + + + + + + + +getHealthChange() + +getCost(String) : int + +getRequiredVillageLevel() : int + +getUpgradeTime() : int + + + + + enclosingFig="Fig0" + + + + + gameobjects::Tile + + + + + + + + + + + + + +x : int + +y : int + + + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig31" + sourceFigNode="Fig27" + destFigNode="Fig31" + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ DefenseStage + + + + + + + + + + + + + #dDamge : int + #dRange : int + + + + + + + + +getDamageChange() : int + +getRangeChange() : int + + + + + sourcePortFig="Fig34.0" + destPortFig="Fig31" + sourceFigNode="Fig34" + destFigNode="Fig31" + + + + + + + + + + + + + + + + + + + + + + userinterface + + + + + + + + + + + enclosingFig="Fig36" + + + + + GuiManager + + + + + + + + + + + + + + + + + + + + + + + + enclosingFig="Fig26" + + + + + Player + + + + + + + + + + + + + +currentGold : int + +currentIron : int + +currentWood : int + + + + + + + + + + + + + + + + + + + + + + + + game + + + + + + + + + + + sourcePortFig="Fig39.0" + destPortFig="Fig36" + sourceFigNode="Fig39" + destFigNode="Fig36" + + + + + + + + + + + enclosingFig="Fig39" + + + + + GameEngine + + + + + + + + + + + + + -player : Player + -pillageFactor : int + -currentTime : int + + + + + + + + +attackVIllage(Map) + +generateMap() : Map + +getScore(Map) + + + + + enclosingFig="Fig39" + + + + + Map + + + + + + + + + + + + + -townHall : Village_Hall + -guardTime : int + + + + + + + + +move(Infantry,Tile) + +inRange(Infantry,Building) + +build(Village_Hall,Tile,Building) + +getGuardTime() : int + +setGuardTime() + + + + + sourcePortFig="Fig0" + destPortFig="Fig36" + sourceFigNode="Fig0" + destFigNode="Fig36" + + + + + + + + + + sourcePortFig="Fig26" + destPortFig="Fig0" + sourceFigNode="Fig26" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig36" + destPortFig="Fig0" + sourceFigNode="Fig36" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig39" + destPortFig="Fig0" + sourceFigNode="Fig39" + destFigNode="Fig0" + + + + + + + + + + sourcePortFig="Fig2.0" + destPortFig="Fig7" + sourceFigNode="Fig2" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig1.0" + destPortFig="Fig7" + sourceFigNode="Fig1" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig3.0" + destPortFig="Fig7" + sourceFigNode="Fig3" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig4.0" + destPortFig="Fig7" + sourceFigNode="Fig4" + destFigNode="Fig7" + + + + + + + + + + sourcePortFig="Fig32" + destPortFig="Fig27" + sourceFigNode="Fig32" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig27" + sourceFigNode="Fig42" + destFigNode="Fig27" + + + + + + + + + + + + + + sourcePortFig="Fig41" + destPortFig="Fig42" + sourceFigNode="Fig41" + destFigNode="Fig42" + + + + + + + + + + + + + + sourcePortFig="Fig42" + destPortFig="Fig8" + sourceFigNode="Fig42" + destFigNode="Fig8" + + + + + + + + + + + + + + + enclosingFig="Fig0" + + + + ~ VillageStage + + + + + + + + + + + + + #goldCapacityIncrease : int + #ironCapacityIncrease : int + #woodCapacityIncrease : int + + + + + + + + +getWoodCapacityIncrease() : int + +getIronCapacityIncrease() : int + +getWoodCapacityIncrease() : int + + + + + enclosingFig="Fig0" + + + + + ResourceStage + + + + + + + + + + + + + #harvestRateIncrease : int + + + + + + + + +getHarvestRateIncrease() : int + + + + + sourcePortFig="Fig55.0" + destPortFig="Fig31" + sourceFigNode="Fig55" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig56.0" + destPortFig="Fig31" + sourceFigNode="Fig56" + destFigNode="Fig31" + + + + + + + + + + sourcePortFig="Fig21.0" + destPortFig="Fig22" + sourceFigNode="Fig21" + destFigNode="Fig22" + + + + + + + + + + sourcePortFig="Fig27" + destPortFig="Fig8" + sourceFigNode="Fig27" + destFigNode="Fig8" + + + + + + + + + + + + + + + + + + + + + diff --git a/Assignment 1/Submission_v2/COSC3P91-A1_Description_BrettMichael.pdf b/Assignment 1/Submission_v2/COSC3P91-A1_Description_BrettMichael.pdf new file mode 100644 index 0000000..5d7c132 Binary files /dev/null and b/Assignment 1/Submission_v2/COSC3P91-A1_Description_BrettMichael.pdf differ diff --git a/Assignment 1/Submission_v2/UMLClassDiagram.png b/Assignment 1/Submission_v2/UMLClassDiagram.png new file mode 100644 index 0000000..9b043a2 Binary files /dev/null and b/Assignment 1/Submission_v2/UMLClassDiagram.png differ diff --git a/Assignment 1/Submission_v2/code/game/GameEngine.java b/Assignment 1/Submission_v2/code/game/GameEngine.java new file mode 100644 index 0000000..7c49a43 --- /dev/null +++ b/Assignment 1/Submission_v2/code/game/GameEngine.java @@ -0,0 +1,25 @@ +package game; + +import player.Player; + +public class GameEngine { + + private Player player; + + private int pillageFactor; + + private int currentTime; + + public Map map; + + public void attackVIllage(Map map) { + } + + public Map generateMap() { + return null; + } + + public void getScore(Map map) { + } + +} diff --git a/Assignment 1/Submission_v2/code/game/Map.java b/Assignment 1/Submission_v2/code/game/Map.java new file mode 100644 index 0000000..2efa7df --- /dev/null +++ b/Assignment 1/Submission_v2/code/game/Map.java @@ -0,0 +1,36 @@ +package game; + +import java.util.List; +import gameobjects.Village_Hall; +import gameobjects.Building; +import gameobjects.Tile; +import gameobjects.Infantry; +import gameobjects.Inhabitant; + +public class Map { + + private Village_Hall townHall; + + private int guardTime; + + private List contains; + + public List inhabitants; + + public void move(Infantry i, Tile t) { + } + + public void inRange(Infantry i, Building b) { + } + + public void build(Village_Hall hall, Tile t, Building b) { + } + + public int getGuardTime() { + return guardTime; + } + + public void setGuardTime() { + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Archer.java b/Assignment 1/Submission_v2/code/gameobjects/Archer.java new file mode 100644 index 0000000..a886565 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Archer.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Archer extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/gameobjects/ArcherTower.java b/Assignment 1/Submission_v2/code/gameobjects/ArcherTower.java new file mode 100644 index 0000000..a8374df --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/ArcherTower.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class ArcherTower extends DefenseBuilding { +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/gameobjects/Building.java b/Assignment 1/Submission_v2/code/gameobjects/Building.java new file mode 100644 index 0000000..fd7acf1 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Building.java @@ -0,0 +1,50 @@ +package gameobjects; + +import java.util.List; + +public abstract class Building { + + private static int level; + + private int health; + + private static Stage stages; + + private int goldCost; + + private int ironCost; + + private int woodCost; + + private int buildTime; + + public List stage; + public Tile tile; + + public List inhabitant; + + public int getLevel() { + return level; + } + + public int getHealth() { + return health; + } + + public int getCost(String type) { + return 0; + } + + public int getUpgradeCost() { + return 0; + } + + public void upgrade() { + + } + + public int getBuildTime() { + return 0; + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Cannon.java b/Assignment 1/Submission_v2/code/gameobjects/Cannon.java new file mode 100644 index 0000000..2a3d1bc --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Cannon.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Cannon extends DefenseBuilding { +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/gameobjects/Catapult.java b/Assignment 1/Submission_v2/code/gameobjects/Catapult.java new file mode 100644 index 0000000..8979520 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Catapult.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Catapult extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/gameobjects/Collector.java b/Assignment 1/Submission_v2/code/gameobjects/Collector.java new file mode 100644 index 0000000..3eb85af --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Collector.java @@ -0,0 +1,13 @@ +package gameobjects; + +import Integer; + +public class Collector { + + private Integer averageCollectionRate; + + public int getCollectionRate() { + return averageCollectionRate; + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/DefenseBuilding.java b/Assignment 1/Submission_v2/code/gameobjects/DefenseBuilding.java new file mode 100644 index 0000000..7551b15 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/DefenseBuilding.java @@ -0,0 +1,13 @@ +package gameobjects; + +public class DefenseBuilding extends Building { + + public int damage; + + public int range; + + public void attack(Infantry attacker) { + + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/DefenseStage.java b/Assignment 1/Submission_v2/code/gameobjects/DefenseStage.java new file mode 100644 index 0000000..b3ab206 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/DefenseStage.java @@ -0,0 +1,15 @@ +package gameobjects; + +class DefenseStage extends Stage { + + protected int dDamge; + + protected int dRange; + + public void getDamageChange() { + } + + public void getRangeChange() { + } + +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/gameobjects/Farm.java b/Assignment 1/Submission_v2/code/gameobjects/Farm.java new file mode 100644 index 0000000..d0c43e8 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Farm.java @@ -0,0 +1,9 @@ +package gameobjects; + +public class Farm extends ResourceBuidling { + + public int getPopulationContribution() { + return 0; + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/GoldMine.java b/Assignment 1/Submission_v2/code/gameobjects/GoldMine.java new file mode 100644 index 0000000..185aed3 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/GoldMine.java @@ -0,0 +1,7 @@ +package gameobjects; + +public class GoldMine extends ResourceBuidling { + + public static String resource = "good"; + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Infantry.java b/Assignment 1/Submission_v2/code/gameobjects/Infantry.java new file mode 100644 index 0000000..4e1bdb8 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Infantry.java @@ -0,0 +1,23 @@ +package gameobjects; + +public abstract class Infantry { + + private int health; + + private int damage; + + private int range; + + public void attack(Building b) { + } + + public void getHealth() { + } + + public void getDamage() { + } + + public void getRange() { + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Inhabitant.java b/Assignment 1/Submission_v2/code/gameobjects/Inhabitant.java new file mode 100644 index 0000000..d69bace --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Inhabitant.java @@ -0,0 +1,14 @@ +package gameobjects; + +import game.Map; + +public interface Inhabitant { + + public Map map = null; + public Building building = null; + + public void move(Tile t); + + public void getPosition(); + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/IronMine.java b/Assignment 1/Submission_v2/code/gameobjects/IronMine.java new file mode 100644 index 0000000..4f4779b --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/IronMine.java @@ -0,0 +1,7 @@ +package gameobjects; + +public class IronMine extends ResourceBuidling { + + public static String resource = "iron"; + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Knight.java b/Assignment 1/Submission_v2/code/gameobjects/Knight.java new file mode 100644 index 0000000..10e9f25 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Knight.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Knight extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/gameobjects/LumberMine.java b/Assignment 1/Submission_v2/code/gameobjects/LumberMine.java new file mode 100644 index 0000000..64fe0c8 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/LumberMine.java @@ -0,0 +1,11 @@ +package gameobjects; + +public class LumberMine extends ResourceBuidling { + + public static String resource = "wood"; + + public abstract void harvest(Village_Hall hall) { + + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/ResourceBuidling.java b/Assignment 1/Submission_v2/code/gameobjects/ResourceBuidling.java new file mode 100644 index 0000000..3fe7950 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/ResourceBuidling.java @@ -0,0 +1,13 @@ +package gameobjects; + +import String; + +public abstract class ResourceBuidling extends Building { + + public static String resource; + + private int harvest_rate; + + public abstract void harvest(Village_Hall hall); + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/ResourceStage.java b/Assignment 1/Submission_v2/code/gameobjects/ResourceStage.java new file mode 100644 index 0000000..9b45329 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/ResourceStage.java @@ -0,0 +1,11 @@ +package gameobjects; + +public class ResourceStage extends Stage { + + protected int harvestRateIncrease; + + public int getHarvestRateIncrease() { + return harvestRateIncrease; + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Soldier.java b/Assignment 1/Submission_v2/code/gameobjects/Soldier.java new file mode 100644 index 0000000..9385ec3 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Soldier.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Soldier extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/gameobjects/Stage.java b/Assignment 1/Submission_v2/code/gameobjects/Stage.java new file mode 100644 index 0000000..93ff2e1 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Stage.java @@ -0,0 +1,34 @@ +package gameobjects; + +abstract class Stage { + + protected int dHealth; + + protected int goldCost; + + protected int requiredVillageLevel; + + protected int upgradeTime; + + protected int ironCost; + + protected int woodCost; + + public Building building; + + public void getHealthChange() { + } + + public int getCost(String type) { + return 0; + } + + public int getRequiredVillageLevel() { + return requiredVillageLevel; + } + + public int getUpgradeTime() { + return upgradeTime; + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Tile.java b/Assignment 1/Submission_v2/code/gameobjects/Tile.java new file mode 100644 index 0000000..39b5801 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Tile.java @@ -0,0 +1,13 @@ +package gameobjects; + +import java.util.List; + +public class Tile { + + public int x; + + public int y; + + public List building; + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/VillageStage.java b/Assignment 1/Submission_v2/code/gameobjects/VillageStage.java new file mode 100644 index 0000000..ac5c711 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/VillageStage.java @@ -0,0 +1,23 @@ +package gameobjects; + +class VillageStage extends Stage { + + protected int goldCapacityIncrease; + + protected int ironCapacityIncrease; + + protected int woodCapacityIncrease; + + public int getWoodCapacityIncrease() { + return goldCapacityIncrease; + } + + public int getIronCapacityIncrease() { + return ironCapacityIncrease; + } + + public int getWoodCapacityIncrease() { + return woodCapacityIncrease; + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Village_Hall.java b/Assignment 1/Submission_v2/code/gameobjects/Village_Hall.java new file mode 100644 index 0000000..60b5d9c --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Village_Hall.java @@ -0,0 +1,23 @@ +package gameobjects; + +public class Village_Hall extends Building { + + private int goldCapacity; + + private int ironCapacity; + + private int woodCapacity; + + public int getGoldCapacity() { + return goldCapacity; + } + + public int getIronCapacity() { + return ironCapacity; + } + + public int getWoodCapacity() { + return woodCapacity; + } + +} diff --git a/Assignment 1/Submission_v2/code/gameobjects/Worker.java b/Assignment 1/Submission_v2/code/gameobjects/Worker.java new file mode 100644 index 0000000..2bf8ae4 --- /dev/null +++ b/Assignment 1/Submission_v2/code/gameobjects/Worker.java @@ -0,0 +1,11 @@ +package gameobjects; + +public class Worker { + + private boolean currentlyBuilding; + + public boolean isCurrentlyBuilding() { + return currentlyBuilding; + } + +} diff --git a/Assignment 1/Submission_v2/code/player/Player.java b/Assignment 1/Submission_v2/code/player/Player.java new file mode 100644 index 0000000..c87fdea --- /dev/null +++ b/Assignment 1/Submission_v2/code/player/Player.java @@ -0,0 +1,11 @@ +package player; + +public class Player { + + public int currentGold; + + public int currentIron; + + public int currentWood; + +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/code/userinterface/GuiManager.java b/Assignment 1/Submission_v2/code/userinterface/GuiManager.java new file mode 100644 index 0000000..a6151e7 --- /dev/null +++ b/Assignment 1/Submission_v2/code/userinterface/GuiManager.java @@ -0,0 +1,4 @@ +package userinterface; + +public class GuiManager { +} \ No newline at end of file diff --git a/Assignment 1/Submission_v2/command.txt b/Assignment 1/Submission_v2/command.txt new file mode 100644 index 0000000..f9b8dab --- /dev/null +++ b/Assignment 1/Submission_v2/command.txt @@ -0,0 +1,4 @@ +#!/bin/bash +mkdir compiled +cd code +javac -verbose -d ../compiled game/GameEngine.java diff --git a/Assignment 1/code/game/GameEngine.java b/Assignment 1/code/game/GameEngine.java new file mode 100644 index 0000000..7c49a43 --- /dev/null +++ b/Assignment 1/code/game/GameEngine.java @@ -0,0 +1,25 @@ +package game; + +import player.Player; + +public class GameEngine { + + private Player player; + + private int pillageFactor; + + private int currentTime; + + public Map map; + + public void attackVIllage(Map map) { + } + + public Map generateMap() { + return null; + } + + public void getScore(Map map) { + } + +} diff --git a/Assignment 1/code/game/Map.java b/Assignment 1/code/game/Map.java new file mode 100644 index 0000000..2efa7df --- /dev/null +++ b/Assignment 1/code/game/Map.java @@ -0,0 +1,36 @@ +package game; + +import java.util.List; +import gameobjects.Village_Hall; +import gameobjects.Building; +import gameobjects.Tile; +import gameobjects.Infantry; +import gameobjects.Inhabitant; + +public class Map { + + private Village_Hall townHall; + + private int guardTime; + + private List contains; + + public List inhabitants; + + public void move(Infantry i, Tile t) { + } + + public void inRange(Infantry i, Building b) { + } + + public void build(Village_Hall hall, Tile t, Building b) { + } + + public int getGuardTime() { + return guardTime; + } + + public void setGuardTime() { + } + +} diff --git a/Assignment 1/code/gameobjects/Archer.java b/Assignment 1/code/gameobjects/Archer.java new file mode 100644 index 0000000..a886565 --- /dev/null +++ b/Assignment 1/code/gameobjects/Archer.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Archer extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/code/gameobjects/ArcherTower.java b/Assignment 1/code/gameobjects/ArcherTower.java new file mode 100644 index 0000000..a8374df --- /dev/null +++ b/Assignment 1/code/gameobjects/ArcherTower.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class ArcherTower extends DefenseBuilding { +} \ No newline at end of file diff --git a/Assignment 1/code/gameobjects/Building.java b/Assignment 1/code/gameobjects/Building.java new file mode 100644 index 0000000..fd7acf1 --- /dev/null +++ b/Assignment 1/code/gameobjects/Building.java @@ -0,0 +1,50 @@ +package gameobjects; + +import java.util.List; + +public abstract class Building { + + private static int level; + + private int health; + + private static Stage stages; + + private int goldCost; + + private int ironCost; + + private int woodCost; + + private int buildTime; + + public List stage; + public Tile tile; + + public List inhabitant; + + public int getLevel() { + return level; + } + + public int getHealth() { + return health; + } + + public int getCost(String type) { + return 0; + } + + public int getUpgradeCost() { + return 0; + } + + public void upgrade() { + + } + + public int getBuildTime() { + return 0; + } + +} diff --git a/Assignment 1/code/gameobjects/Cannon.java b/Assignment 1/code/gameobjects/Cannon.java new file mode 100644 index 0000000..2a3d1bc --- /dev/null +++ b/Assignment 1/code/gameobjects/Cannon.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Cannon extends DefenseBuilding { +} \ No newline at end of file diff --git a/Assignment 1/code/gameobjects/Catapult.java b/Assignment 1/code/gameobjects/Catapult.java new file mode 100644 index 0000000..8979520 --- /dev/null +++ b/Assignment 1/code/gameobjects/Catapult.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Catapult extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/code/gameobjects/Collector.java b/Assignment 1/code/gameobjects/Collector.java new file mode 100644 index 0000000..3eb85af --- /dev/null +++ b/Assignment 1/code/gameobjects/Collector.java @@ -0,0 +1,13 @@ +package gameobjects; + +import Integer; + +public class Collector { + + private Integer averageCollectionRate; + + public int getCollectionRate() { + return averageCollectionRate; + } + +} diff --git a/Assignment 1/code/gameobjects/DefenseBuilding.java b/Assignment 1/code/gameobjects/DefenseBuilding.java new file mode 100644 index 0000000..7551b15 --- /dev/null +++ b/Assignment 1/code/gameobjects/DefenseBuilding.java @@ -0,0 +1,13 @@ +package gameobjects; + +public class DefenseBuilding extends Building { + + public int damage; + + public int range; + + public void attack(Infantry attacker) { + + } + +} diff --git a/Assignment 1/code/gameobjects/DefenseStage.java b/Assignment 1/code/gameobjects/DefenseStage.java new file mode 100644 index 0000000..b3ab206 --- /dev/null +++ b/Assignment 1/code/gameobjects/DefenseStage.java @@ -0,0 +1,15 @@ +package gameobjects; + +class DefenseStage extends Stage { + + protected int dDamge; + + protected int dRange; + + public void getDamageChange() { + } + + public void getRangeChange() { + } + +} \ No newline at end of file diff --git a/Assignment 1/code/gameobjects/Farm.java b/Assignment 1/code/gameobjects/Farm.java new file mode 100644 index 0000000..d0c43e8 --- /dev/null +++ b/Assignment 1/code/gameobjects/Farm.java @@ -0,0 +1,9 @@ +package gameobjects; + +public class Farm extends ResourceBuidling { + + public int getPopulationContribution() { + return 0; + } + +} diff --git a/Assignment 1/code/gameobjects/GoldMine.java b/Assignment 1/code/gameobjects/GoldMine.java new file mode 100644 index 0000000..185aed3 --- /dev/null +++ b/Assignment 1/code/gameobjects/GoldMine.java @@ -0,0 +1,7 @@ +package gameobjects; + +public class GoldMine extends ResourceBuidling { + + public static String resource = "good"; + +} diff --git a/Assignment 1/code/gameobjects/Infantry.java b/Assignment 1/code/gameobjects/Infantry.java new file mode 100644 index 0000000..4e1bdb8 --- /dev/null +++ b/Assignment 1/code/gameobjects/Infantry.java @@ -0,0 +1,23 @@ +package gameobjects; + +public abstract class Infantry { + + private int health; + + private int damage; + + private int range; + + public void attack(Building b) { + } + + public void getHealth() { + } + + public void getDamage() { + } + + public void getRange() { + } + +} diff --git a/Assignment 1/code/gameobjects/Inhabitant.java b/Assignment 1/code/gameobjects/Inhabitant.java new file mode 100644 index 0000000..d69bace --- /dev/null +++ b/Assignment 1/code/gameobjects/Inhabitant.java @@ -0,0 +1,14 @@ +package gameobjects; + +import game.Map; + +public interface Inhabitant { + + public Map map = null; + public Building building = null; + + public void move(Tile t); + + public void getPosition(); + +} diff --git a/Assignment 1/code/gameobjects/IronMine.java b/Assignment 1/code/gameobjects/IronMine.java new file mode 100644 index 0000000..4f4779b --- /dev/null +++ b/Assignment 1/code/gameobjects/IronMine.java @@ -0,0 +1,7 @@ +package gameobjects; + +public class IronMine extends ResourceBuidling { + + public static String resource = "iron"; + +} diff --git a/Assignment 1/code/gameobjects/Knight.java b/Assignment 1/code/gameobjects/Knight.java new file mode 100644 index 0000000..10e9f25 --- /dev/null +++ b/Assignment 1/code/gameobjects/Knight.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Knight extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/code/gameobjects/LumberMine.java b/Assignment 1/code/gameobjects/LumberMine.java new file mode 100644 index 0000000..64fe0c8 --- /dev/null +++ b/Assignment 1/code/gameobjects/LumberMine.java @@ -0,0 +1,11 @@ +package gameobjects; + +public class LumberMine extends ResourceBuidling { + + public static String resource = "wood"; + + public abstract void harvest(Village_Hall hall) { + + } + +} diff --git a/Assignment 1/code/gameobjects/ResourceBuidling.java b/Assignment 1/code/gameobjects/ResourceBuidling.java new file mode 100644 index 0000000..3fe7950 --- /dev/null +++ b/Assignment 1/code/gameobjects/ResourceBuidling.java @@ -0,0 +1,13 @@ +package gameobjects; + +import String; + +public abstract class ResourceBuidling extends Building { + + public static String resource; + + private int harvest_rate; + + public abstract void harvest(Village_Hall hall); + +} diff --git a/Assignment 1/code/gameobjects/ResourceStage.java b/Assignment 1/code/gameobjects/ResourceStage.java new file mode 100644 index 0000000..9b45329 --- /dev/null +++ b/Assignment 1/code/gameobjects/ResourceStage.java @@ -0,0 +1,11 @@ +package gameobjects; + +public class ResourceStage extends Stage { + + protected int harvestRateIncrease; + + public int getHarvestRateIncrease() { + return harvestRateIncrease; + } + +} diff --git a/Assignment 1/code/gameobjects/Soldier.java b/Assignment 1/code/gameobjects/Soldier.java new file mode 100644 index 0000000..9385ec3 --- /dev/null +++ b/Assignment 1/code/gameobjects/Soldier.java @@ -0,0 +1,4 @@ +package gameobjects; + +public class Soldier extends Infantry { +} \ No newline at end of file diff --git a/Assignment 1/code/gameobjects/Stage.java b/Assignment 1/code/gameobjects/Stage.java new file mode 100644 index 0000000..93ff2e1 --- /dev/null +++ b/Assignment 1/code/gameobjects/Stage.java @@ -0,0 +1,34 @@ +package gameobjects; + +abstract class Stage { + + protected int dHealth; + + protected int goldCost; + + protected int requiredVillageLevel; + + protected int upgradeTime; + + protected int ironCost; + + protected int woodCost; + + public Building building; + + public void getHealthChange() { + } + + public int getCost(String type) { + return 0; + } + + public int getRequiredVillageLevel() { + return requiredVillageLevel; + } + + public int getUpgradeTime() { + return upgradeTime; + } + +} diff --git a/Assignment 1/code/gameobjects/Tile.java b/Assignment 1/code/gameobjects/Tile.java new file mode 100644 index 0000000..39b5801 --- /dev/null +++ b/Assignment 1/code/gameobjects/Tile.java @@ -0,0 +1,13 @@ +package gameobjects; + +import java.util.List; + +public class Tile { + + public int x; + + public int y; + + public List building; + +} diff --git a/Assignment 1/code/gameobjects/VillageStage.java b/Assignment 1/code/gameobjects/VillageStage.java new file mode 100644 index 0000000..ac5c711 --- /dev/null +++ b/Assignment 1/code/gameobjects/VillageStage.java @@ -0,0 +1,23 @@ +package gameobjects; + +class VillageStage extends Stage { + + protected int goldCapacityIncrease; + + protected int ironCapacityIncrease; + + protected int woodCapacityIncrease; + + public int getWoodCapacityIncrease() { + return goldCapacityIncrease; + } + + public int getIronCapacityIncrease() { + return ironCapacityIncrease; + } + + public int getWoodCapacityIncrease() { + return woodCapacityIncrease; + } + +} diff --git a/Assignment 1/code/gameobjects/Village_Hall.java b/Assignment 1/code/gameobjects/Village_Hall.java new file mode 100644 index 0000000..60b5d9c --- /dev/null +++ b/Assignment 1/code/gameobjects/Village_Hall.java @@ -0,0 +1,23 @@ +package gameobjects; + +public class Village_Hall extends Building { + + private int goldCapacity; + + private int ironCapacity; + + private int woodCapacity; + + public int getGoldCapacity() { + return goldCapacity; + } + + public int getIronCapacity() { + return ironCapacity; + } + + public int getWoodCapacity() { + return woodCapacity; + } + +} diff --git a/Assignment 1/code/gameobjects/Worker.java b/Assignment 1/code/gameobjects/Worker.java new file mode 100644 index 0000000..2bf8ae4 --- /dev/null +++ b/Assignment 1/code/gameobjects/Worker.java @@ -0,0 +1,11 @@ +package gameobjects; + +public class Worker { + + private boolean currentlyBuilding; + + public boolean isCurrentlyBuilding() { + return currentlyBuilding; + } + +} diff --git a/Assignment 1/code/player/Player.java b/Assignment 1/code/player/Player.java new file mode 100644 index 0000000..c87fdea --- /dev/null +++ b/Assignment 1/code/player/Player.java @@ -0,0 +1,11 @@ +package player; + +public class Player { + + public int currentGold; + + public int currentIron; + + public int currentWood; + +} \ No newline at end of file diff --git a/Assignment 1/code/userinterface/GuiManager.java b/Assignment 1/code/userinterface/GuiManager.java new file mode 100644 index 0000000..a6151e7 --- /dev/null +++ b/Assignment 1/code/userinterface/GuiManager.java @@ -0,0 +1,4 @@ +package userinterface; + +public class GuiManager { +} \ No newline at end of file diff --git a/Assignment 2/assignment2.pdf b/Assignment 2/assignment2.pdf new file mode 100644 index 0000000..7ff37aa Binary files /dev/null and b/Assignment 2/assignment2.pdf differ diff --git a/Assignment 2/suggestedSolutionA1.png b/Assignment 2/suggestedSolutionA1.png new file mode 100644 index 0000000..f656bf4 Binary files /dev/null and b/Assignment 2/suggestedSolutionA1.png differ