Create main.java

the main file
This commit is contained in:
Vikramb987
2019-02-21 22:07:08 -07:00
committed by GitHub
parent 5c5aff2ae0
commit 0a4968998c

28
src/main.java Normal file
View File

@@ -0,0 +1,28 @@
public class main {
private static Player player = new Player();
public void shop(TaipanShop shop){
shop.setPlayer(player);
shop.shop();
player = shop.getPlayer();
}
public void peasantFleet(ShipWarfare warfare) throws Exception {
warfare.setPlayer(player);
warfare.peasantFleetAttack();
player = warfare.getPlayer();
}
public static void main(String[] args) throws Exception {
main main = new main();
ShipWarfare littyWarfare = new ShipWarfare(player);
TaipanShop littyShop = new TaipanShop(player);
main.shop(littyShop);
main.peasantFleet(littyWarfare);
main.shop(littyShop);
}
}