|
|
@@ -5,7 +5,6 @@ import java.awt.Graphics2D;
|
|
|
import java.awt.geom.GeneralPath;
|
|
|
import java.awt.geom.Rectangle2D;
|
|
|
import java.io.Serializable;
|
|
|
-import java.util.GregorianCalendar;
|
|
|
|
|
|
import agenda.Act;
|
|
|
import agenda.Stage;
|
|
|
@@ -22,26 +21,29 @@ public class SimulatorStage extends DrawEngine implements Serializable {
|
|
|
private Act playingact;
|
|
|
private int movement1,movement2;
|
|
|
private long lastTime;
|
|
|
- private Rectangle2D.Double walkArea = new Rectangle2D.Double(20, 250, 350, 100);
|
|
|
+ private Rectangle2D.Double walkArea = new Rectangle2D.Double(20, 250, 350, 200);
|
|
|
+
|
|
|
+ //walk area
|
|
|
+ private static final int WALKAREAHEIGHT = 200;
|
|
|
|
|
|
public SimulatorStage(int x, int y, Terrain terrain, boolean drawWalkArea) {
|
|
|
- super(images, x, y, 1, 0, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), drawWalkArea);
|
|
|
+ super(images, x, y, 1, 0, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, WALKAREAHEIGHT), drawWalkArea);
|
|
|
changeLightbeam();
|
|
|
}
|
|
|
|
|
|
public SimulatorStage(int x, int y, double scale, double distance, Terrain terrain, boolean drawWalkArea) {
|
|
|
- super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), drawWalkArea);
|
|
|
+ super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, WALKAREAHEIGHT), drawWalkArea);
|
|
|
changeLightbeam();
|
|
|
}
|
|
|
|
|
|
public SimulatorStage(int x, int y, double scale, double distance, Terrain terrain) {
|
|
|
- super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), false);
|
|
|
+ super(images, x, y, scale, distance, SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, WALKAREAHEIGHT), false);
|
|
|
changeLightbeam();
|
|
|
}
|
|
|
|
|
|
|
|
|
public SimulatorStage(int x, int y, Terrain terrain) {
|
|
|
- super(images, x, y, 1, 0,SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, 100), false);
|
|
|
+ super(images, x, y, 1, 0,SimulatorPane.Objects.STAGE, terrain, new Rectangle2D.Double(20, 250, 350, WALKAREAHEIGHT), false);
|
|
|
changeLightbeam();
|
|
|
}
|
|
|
|