|
|
@@ -1,6 +1,9 @@
|
|
|
package gui.simulator;
|
|
|
|
|
|
import gui.simulator.Images.TextPaint;
|
|
|
+import gui.simulator.facilities.AccessPoint;
|
|
|
+import gui.simulator.facilities.BeerBar;
|
|
|
+import gui.simulator.facilities.ExitPoint;
|
|
|
import gui.simulator.facilities.Fence;
|
|
|
import gui.simulator.facilities.PalmTree1;
|
|
|
import gui.simulator.facilities.RestRoom;
|
|
|
@@ -73,22 +76,14 @@ public class Sidebar implements Serializable {
|
|
|
//stages
|
|
|
drawableStages.put("Stage1", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
drawableStages.put("Stage2",new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage3",new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage4", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage5", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage6", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage7", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage8", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage9", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage10", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
- drawableStages.put("Stage11", new SimulatorStage(0, 0, 0.26, 1, terrain));
|
|
|
|
|
|
//facilities
|
|
|
drawableFacilities.put("Toilet", new RestRoom(0, 0, 0.8, 1, this.terrain));
|
|
|
drawableFacilities.put("Ingang", new AccessPoint(terrain, 0, 0, 0.26, 1));
|
|
|
drawableFacilities.put("Uitgang", new ExitPoint(terrain, 0, 0, 0.26, 1));
|
|
|
- drawableFacilities.put("Snackbar", new SnackBar(0, 0, 0.2, 1, this.terrain));
|
|
|
- drawableFacilities.put("Wegwijzer", new WayPoint(0, 0, 0.8, 1, this.terrain));
|
|
|
+ drawableFacilities.put("Snackbar", new SnackBar(0, 0, 0.3, 1, this.terrain));
|
|
|
+ drawableFacilities.put("Beerbar", new BeerBar(0, 0, 0.3, 1, this.terrain));
|
|
|
+ drawableFacilities.put("Wegwijzer", new WayPoint(0, 0, 0.6, 1, this.terrain));
|
|
|
|
|
|
//paths
|
|
|
drawablePaths.put("Repak", Images.TextPaint.TPPathGroundStone);
|
|
|
@@ -167,7 +162,7 @@ public class Sidebar implements Serializable {
|
|
|
for(Entry<String, DrawEngine> object : drawableArrays.get(currentTab.getValue()).entrySet()){
|
|
|
object.getValue().setX(objectPlacementX);
|
|
|
object.getValue().setY(objectPlacementY);
|
|
|
- if(object.getValue().getFacilityName() == "Fence")
|
|
|
+ if(object.getValue().type == SimulatorPane.Objects.FENCE)
|
|
|
object.getValue().setY(objectPlacementY+50);
|
|
|
object.getValue().draw(g2);
|
|
|
g2.drawString(object.getKey(), objectPlacementX+2, objectPlacementY + 95);
|