From 664d194d7b25416c09198e552ce61a1244636b1a Mon Sep 17 00:00:00 2001
From: KahootChampion
Date: Sun, 10 Mar 2019 20:00:36 -0600
Subject: [PATCH] Completed SHipWarfareGUI
---
.idea/workspace.xml | 60 ++++++++++++++++++++++++++---------------
src/ShipWarfareGUI.java | 4 +++
src/TaipanShopGUI.java | 2 +-
3 files changed, 44 insertions(+), 22 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index f748ccb..a1e2a0c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,9 +1,10 @@
-
+
+
@@ -19,8 +20,8 @@
-
-
+
+
@@ -28,6 +29,15 @@
+
+
+
+
+
+
+
+
+
@@ -57,9 +67,6 @@
- player
- numOfPeasantShips
- peasant
litty
userAttacks
numOfLittyShips
@@ -87,6 +94,9 @@
dang it
destroy
destroyPeas
+ continue
+ cash
+ op
HP
@@ -113,6 +123,7 @@
+
@@ -152,7 +163,7 @@
-
+
@@ -266,7 +277,7 @@
-
+
1550458470138
@@ -471,11 +482,18 @@
1552254331759
-
+
+ 1552268490741
+
+
+
+ 1552268490741
+
+
-
+
@@ -578,7 +596,6 @@
-
@@ -603,7 +620,8 @@
-
+
+
@@ -697,13 +715,6 @@
-
-
-
-
-
-
-
@@ -718,10 +729,17 @@
+
+
+
+
+
+
+
-
-
+
+
diff --git a/src/ShipWarfareGUI.java b/src/ShipWarfareGUI.java
index 251ee8c..11d66ab 100644
--- a/src/ShipWarfareGUI.java
+++ b/src/ShipWarfareGUI.java
@@ -380,6 +380,8 @@ public class ShipWarfareGUI {
if (destroyPeasantShipsOrEscape()){
completeWipe();
continueButton.setVisible(true);
+ fightButton.setVisible(false);
+ runButton.setVisible(false);
continueButton.setOnAction(new EventHandler() {
@Override
public void handle(ActionEvent event) {
@@ -416,6 +418,8 @@ public class ShipWarfareGUI {
if(destroyPeasantShipsOrEscape()==true){
completeWipe();
continueButton.setVisible(true);
+ fightButton.setVisible(false);
+ runButton.setVisible(false);
continueButton.setOnAction(new EventHandler() {
@Override
public void handle(ActionEvent event) {
diff --git a/src/TaipanShopGUI.java b/src/TaipanShopGUI.java
index 50fb961..e00af07 100644
--- a/src/TaipanShopGUI.java
+++ b/src/TaipanShopGUI.java
@@ -803,7 +803,7 @@ public class TaipanShopGUI {
gunsText.setText(String.format("Guns %d\n\n\n\n ", player.getGuns()));
inventoryHeldText.setText(String.format("\n %d\n %d\n %d\n %d", player.getOpiumHeld(), player.getSilkHeld(), player.getArmsHeld(), player.getGeneralHeld()));
shipStatusText.setText(String.format("\tDebt\n\t%d\n\n\tShip status\n\t%s: %d", player.getDebt(), shipStatusString(), player.getHP()));
- cashText.setText(String.format(" Cash: %d", player.getMoney()));
+ cashText.setText(String.format(" Cash: $%,d", player.getMoney()));
bankText.setText(String.format("Bank: %d", player.getBank()));
}