-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf96133
commit 18b69d3
Showing
5 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,5 @@ public Unit getCivilian() { | |
public MilitaryUnit getMilitaryUnit() { | ||
return militaryUnit; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,37 @@ | ||
public class GameController { | ||
private static Game game; | ||
|
||
public static void startGame() { | ||
|
||
} | ||
|
||
public static void showMap() { | ||
} | ||
|
||
public void cheatTurn(int turn) { | ||
public static void cheatTurn(int turn) { | ||
} | ||
|
||
public void cheatGold(int turn) { | ||
public static void cheatGold(int turn) { | ||
} | ||
|
||
public void setGold(int gold) { | ||
Civilization civilization = new Civilization(null,1,null,null); | ||
Civilization civilization = new Civilization(null, 1, null, null); | ||
civilization.getGold(); | ||
} | ||
|
||
public void nextTurn() { | ||
game.nextTurn(); | ||
} | ||
|
||
public static Game getGame() { | ||
return game; | ||
} | ||
|
||
public void combat(MilitaryUnit militaryUnit, MilitaryUnit militaryUnit1) { | ||
|
||
} | ||
|
||
public void combat(MilitaryUnit militaryUnit, City city) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
import java.util.ArrayList; | ||
import java.util.Scanner; | ||
|
||
public class GameMenu { | ||
public void run(Scanner scanner) { | ||
|
||
GameController.startGame(); | ||
} | ||
|
||
private void showMap() { | ||
GameController.showMap(); | ||
} | ||
|
||
private void cheatTurn(int turn) { | ||
GameController gameController = new GameController(); | ||
gameController.cheatTurn(turn); | ||
GameController.cheatTurn(turn); | ||
} | ||
|
||
private void cheatGold(int turn) { | ||
GameController gameController = new GameController(); | ||
gameController.cheatGold(turn); | ||
GameController.cheatGold(turn); | ||
} | ||
|
||
private void showInfo() { | ||
ArrayList<Civilization> civilizations = GameController.getGame().getCivilizations(); | ||
} | ||
} |