|
|
@@ -22,32 +22,27 @@ public class SimulatorStage extends DrawEngine implements Serializable {
|
|
|
private Act playingact;
|
|
|
private int movement1,movement2;
|
|
|
private long lastTime;
|
|
|
- private boolean drawWalkArea;
|
|
|
private Rectangle2D.Double walkArea = new Rectangle2D.Double(20, 250, 350, 100);
|
|
|
|
|
|
public SimulatorStage(int x, int y, Terrain terrain, boolean drawWalkArea) {
|
|
|
- super(images, x, y, 1, 0,SimulatorPane.Objects.STAGE, terrain);
|
|
|
+ super(images, x, y, 1, 0, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), drawWalkArea);
|
|
|
changeLightbeam();
|
|
|
- this.drawWalkArea = drawWalkArea;
|
|
|
}
|
|
|
|
|
|
public SimulatorStage(int x, int y, double scale, double distance, Terrain terrain, boolean drawWalkArea) {
|
|
|
- super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain);
|
|
|
- this.drawWalkArea = drawWalkArea;
|
|
|
+ super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), drawWalkArea);
|
|
|
changeLightbeam();
|
|
|
}
|
|
|
|
|
|
public SimulatorStage(int x, int y, double scale, double distance, Terrain terrain) {
|
|
|
- super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain);
|
|
|
- this.drawWalkArea = false;
|
|
|
+ super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), false);
|
|
|
changeLightbeam();
|
|
|
}
|
|
|
|
|
|
|
|
|
public SimulatorStage(int x, int y, Terrain terrain) {
|
|
|
- super(images, x, y, 1, 0,SimulatorPane.Objects.STAGE, terrain);
|
|
|
+ super(images, x, y, 1, 0,SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), false);
|
|
|
changeLightbeam();
|
|
|
- this.drawWalkArea = false;
|
|
|
}
|
|
|
|
|
|
public String getFacilityName(){
|
|
|
@@ -90,10 +85,7 @@ public class SimulatorStage extends DrawEngine implements Serializable {
|
|
|
g.fill(this.getAffineTransform().createTransformedShape(lightbeam));
|
|
|
}
|
|
|
super.draw(g);
|
|
|
- if(this.drawWalkArea){
|
|
|
- g.setColor(Color.GREEN);
|
|
|
- g.fill(getAffineTransform().createTransformedShape(this.walkArea));
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public void changeLightbeam(){
|