-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIGenerator.java
More file actions
28 lines (27 loc) · 980 Bytes
/
IGenerator.java
File metadata and controls
28 lines (27 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import java.util.Set;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
/**
*
* Last Edited 24/05/2017 : Antony.J
*
*/
public interface IGenerator {
public void moveCharacter(int dir);
public void generateLevel(int numBoxes, int numIterations, int difficulty, long seed);
public void generateLevel(int numBoxes, int numIterations, int difficulty);
public void generateLevel();
public int getBoxMovedBox();
public Vector2[] getBoxLocations();
public Vector2 getPlayerLocation();
public Set<Vector2> getFloor();
public Vector2[] getGoals();
public boolean hasGoal(Vector2 g);
public Set<Vector2> getEdges();
public void undo();
public long getSeed();
public void setOnPlayerMove(EventHandler<ActionEvent> eventHandler);
public void setOnBoxMove(EventHandler<ActionEvent> eventHandler);
public void setOnWin(EventHandler<ActionEvent> eventHandler);
public void setOnLose(EventHandler<ActionEvent> eventHandler);
}