Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/ro18/warzone into dev_roch_b…
Browse files Browse the repository at this point in the history
…uild3
  • Loading branch information
ro18 committed Nov 30, 2023
2 parents 1361ec4 + 3be5ae3 commit 57dda1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
12 changes: 0 additions & 12 deletions src/main/java/project/app/warzone/Model/Postload.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,6 @@ public void saveMap(String p_filename) {
ge.setPhase(new PlaySetup(ge));
}

/**
* @param p_fileName filename
*/
public void validateMap() {
printInvalidCommandMessage();
}

public void saveMap(String p_filename) {
// Call savemap func after creation of it
ge.setPhase(new PlaySetup(ge));
}

public void showMap(MapFeatures newmapFeatures) {
LogObject l_logObject = new LogObject();
l_logObject.setD_command("showmap");
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/project/app/warzone/Features/CardTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ public void testBombCountry() {
public void testNegotiatedPlayer() {

d_playerFeatures.assignCountries(d_gameEngine);
MapFeatures mapFeatures = MapFeatures.getInstance();

d_gameEngine.getGamePhase().loadMap("europe");
d_gameEngine.getGamePhase().showMap(new MapFeatures());
d_gameEngine.getGamePhase().showMap(mapFeatures);
d_gameEngine.getGamePhase().setPlayers("add", "rochelle");
d_gameEngine.getGamePhase().setPlayers("add", "numan");
d_gameEngine.getGamePhase().assignCountriesForDemo();
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/project/app/warzone/Model/AttackOrderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,10 @@ public void testAttackonNegotiatedCountry() {

d_playerFeatures.assignCountries(d_gameEngine);
LogObject l_logObject = new LogObject();
MapFeatures mapFeatures= MapFeatures.getInstance();

d_gameEngine.getGamePhase().loadMap("europe");
d_gameEngine.getGamePhase().showMap(new MapFeatures());
d_gameEngine.getGamePhase().showMap(mapFeatures);
d_gameEngine.getGamePhase().setPlayers("add","rochelle");
d_gameEngine.getGamePhase().setPlayers("add","numan");
d_gameEngine.getGamePhase().assignCountriesForDemo();
Expand Down

0 comments on commit 57dda1f

Please sign in to comment.