diff --git a/.classpath b/.classpath
index fb50116..a30f3d0 100644
--- a/.classpath
+++ b/.classpath
@@ -1,6 +1,8 @@
+
+
diff --git a/images/fire.png b/images/fire.png
new file mode 100644
index 0000000..89e73b8
Binary files /dev/null and b/images/fire.png differ
diff --git a/images/gameoflife.png b/images/gameoflife.png
new file mode 100644
index 0000000..80dc2a8
Binary files /dev/null and b/images/gameoflife.png differ
diff --git a/images/pause.png b/images/pause.png
new file mode 100644
index 0000000..ff67784
Binary files /dev/null and b/images/pause.png differ
diff --git a/images/restart.png b/images/restart.png
new file mode 100644
index 0000000..8cda490
Binary files /dev/null and b/images/restart.png differ
diff --git a/images/resume.png b/images/resume.png
new file mode 100644
index 0000000..e1a944c
Binary files /dev/null and b/images/resume.png differ
diff --git a/images/running.png b/images/running.png
new file mode 100644
index 0000000..1bdd0d3
Binary files /dev/null and b/images/running.png differ
diff --git a/images/segregation.png b/images/segregation.png
new file mode 100644
index 0000000..8afe2d1
Binary files /dev/null and b/images/segregation.png differ
diff --git a/images/start.png b/images/start.png
new file mode 100644
index 0000000..6d0ccd8
Binary files /dev/null and b/images/start.png differ
diff --git a/images/wator.png b/images/wator.png
new file mode 100644
index 0000000..42a5d24
Binary files /dev/null and b/images/wator.png differ
diff --git a/src/cellsociety_team04/Driver.java b/src/cellsociety_team04/Driver.java
index a394289..4f4f929 100644
--- a/src/cellsociety_team04/Driver.java
+++ b/src/cellsociety_team04/Driver.java
@@ -15,6 +15,7 @@
import javafx.scene.text.TextAlignment;
import javafx.stage.Screen;
import javafx.stage.Stage;
+import javafx.util.Duration;
/**
*
@@ -27,8 +28,15 @@
public class Driver extends Application {
private static final String TITLE = "Cell Society";
- /* private static final double MILLISECOND_DELAY = 0;
- private static final String SECOND_DELAY = null;*/
+ private boolean segregationWindow = false;
+ private boolean segregationRunning = false;
+ private boolean watorWindow = false;
+ private boolean watorRunning = false;
+ private boolean fireWindow = false;
+ private boolean fireRunning = false;
+ private boolean gameoflifeWindow = false;
+ private boolean gameoflifeRunning = false;
+
private Stage menuStage;
/**
@@ -42,37 +50,8 @@ public void start(Stage stage) {
Window menu = new MenuWindow();
menuStage.setScene(menu.getScene());
menuStage.show();
-
- /*segregation.setOnAction(e -> {
- Stage segStage = new Stage();
- //segStage.run();
- });
- *//* //attach the game loop
- KeyFrame frame = new KeyFrame(Duration.millis(MILLISECOND_DELAY),
- e -> step(SECOND_DELAY, root));
- Timeline animation = new Timeline();
- animation.setCycleCount(Timeline.INDEFINITE);
- animation.getKeyFrames().add(frame);
- animation.play();*/
}
- /* private Object step(String secondDelay, Group root2) {
- // TODO Auto-generated method stub
- return null;
- }*/
-
-/* private void formatStage(Rectangle2D dimensions, double width, double height) {
- menuStage.setX(dimensions.getMinX());
- menuStage.setY(dimensions.getMinY());
- menuStage.setWidth(width);
- menuStage.setHeight(height);
- }*/
-
- /* private Button simButton() {
-
- }*/
-
-
/**
* Start of the program
*/
diff --git a/src/cellsociety_team04/FireWindow.java b/src/cellsociety_team04/FireWindow.java
new file mode 100644
index 0000000..b6433af
--- /dev/null
+++ b/src/cellsociety_team04/FireWindow.java
@@ -0,0 +1,5 @@
+package cellsociety_team04;
+
+public class FireWindow extends Window {
+
+}
diff --git a/src/cellsociety_team04/GameOfLifeWindow.java b/src/cellsociety_team04/GameOfLifeWindow.java
index 8f8846d..4b2c404 100644
--- a/src/cellsociety_team04/GameOfLifeWindow.java
+++ b/src/cellsociety_team04/GameOfLifeWindow.java
@@ -14,6 +14,21 @@ public GameOfLifeWindow() {
super();
}
+
+ /**
+ * Updates the cells for each SimulationWindow
+ */
+ public void step(double elapsedTime) {
+ // do nothing
+ if (windowOpen) {
+ if (simulationRunning) {
+
+ }
+ else {
+
+ }
+ }
+ }
}
diff --git a/src/cellsociety_team04/MenuWindow.java b/src/cellsociety_team04/MenuWindow.java
index e07aec9..6c9bef6 100644
--- a/src/cellsociety_team04/MenuWindow.java
+++ b/src/cellsociety_team04/MenuWindow.java
@@ -3,25 +3,23 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-
+import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
-import javafx.scene.input.MouseEvent;
-import javafx.scene.layout.ColumnConstraintsBuilder;
-import javafx.scene.layout.GridPane;
-import javafx.scene.layout.Priority;
-import javafx.scene.layout.Region;
-import javafx.scene.layout.VBox;
+import javafx.scene.image.Image;
+import javafx.scene.image.ImageView;
+import javafx.scene.layout.HBox;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.scene.text.TextAlignment;
public class MenuWindow extends Window {
- private static final int BUTTONOFFSET = 10;
+ private static final int BUTTONOFFSET = 50;
private List