Skip to content

Commit

Permalink
small javadoc update
Browse files Browse the repository at this point in the history
  • Loading branch information
20lstrachan committed Oct 1, 2020
1 parent 1b2510f commit 8ecce4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/backend/CreateFile.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package backend;

import java.io.File;
import java.nio.file.Files;
import java.util.Formatter;

public class CreateFile {
Expand Down
6 changes: 6 additions & 0 deletions src/gui/ControlPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ public void actionPerformed(ActionEvent e) {
}
}

/**
* Starts a simulation if possible (ie checks to make sure parameters are sufficient)
*/
private void startSim()
{
if(canStart)
Expand Down Expand Up @@ -802,6 +805,9 @@ else if(Integer.parseInt(numPeopleField.getText()) < 2 || Integer.parseInt(numPe
}
}

/**
* Resumes a simulation after setting or info panel closes
*/
public void resumeSim()
{
simEngine.getClock().start();
Expand Down

0 comments on commit 8ecce4e

Please sign in to comment.