diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index f662041..c708ac9 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -29,7 +29,7 @@
-
+
@@ -37,7 +37,7 @@
-
+
@@ -49,7 +49,7 @@
-
+
@@ -69,7 +69,7 @@
-
+
@@ -77,8 +77,8 @@
-
-
+
+
@@ -86,7 +86,7 @@
-
+
@@ -98,7 +98,7 @@
-
+
@@ -192,8 +192,8 @@
-
+
@@ -431,7 +431,14 @@
1551060038524
-
+
+ 1551060234136
+
+
+
+ 1551060234136
+
+
@@ -439,8 +446,9 @@
+
-
+
@@ -449,7 +457,7 @@
-
+
@@ -458,7 +466,7 @@
-
+
@@ -513,33 +521,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -555,24 +539,48 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
diff --git a/src/ShipWarfare.java b/src/ShipWarfare.java
index e63f64f..49efdca 100644
--- a/src/ShipWarfare.java
+++ b/src/ShipWarfare.java
@@ -2,14 +2,7 @@ import java.util.Scanner;
import java.util.Random;
import java.util.concurrent.TimeUnit;
-/*
-
-Learned how to use the Time Unit Class from the following source:
-Slim, and Lalith Verma. “How to Use TimeUnit in Java.” Stack Overflow, 8 Dec. 2017, stackoverflow.com/questions/47717633/how-to-use-timeunit-in-java.
-
- */
-
-public class ShipWarfare extends Player {
+public class ShipWarfare {
private int numOfPeasantShips = 0;
private int numOfLittyShips = 0;
@@ -192,7 +185,7 @@ public class ShipWarfare extends Player {
System.out.println("Got eem");
delayForASecond();
} else if (hitOrMiss == 2) {
- System.out.printf("ARRG! We missed %s\n", getName());
+ System.out.printf("ARRG! We missed %s\n", player.getName());
delayForASecond();
} else {
System.out.println("Darn! Their fleet tanked our attack");
@@ -218,7 +211,7 @@ public class ShipWarfare extends Player {
setNumOfLittyShips(numOfLittyShips - howMuchRun);
if (userAttacks == true) {
- System.out.printf("Cowards! %d ships ran away %s!\n", howMuchRun, getName());
+ System.out.printf("Cowards! %d ships ran away %s!\n", howMuchRun, player.getName());
} else {
System.out.printf("Escaped %d of them!\n", howMuchRun);
}
@@ -269,7 +262,7 @@ public class ShipWarfare extends Player {
System.out.printf("We got $%,d!\n", calculateLoot);
return true;
} else if (exitValue == 2) {
- gameOver();
+ player.gameOver();
return true;
} else if (exitValue == 3) {
System.out.printf("We made it out at %d%% ship status!\n", player.getHP());
@@ -304,7 +297,7 @@ public class ShipWarfare extends Player {
System.out.println("Got eem");
delayForASecond();
} else {
- System.out.printf("ARRG! We missed %s\n", getName());
+ System.out.printf("ARRG! We missed %s\n", player.getName());
delayForASecond();
}
@@ -327,7 +320,7 @@ public class ShipWarfare extends Player {
setNumOfPeasantShips(numOfPeasantShips - howMuchRun);
if (userAttacks == true) {
- System.out.printf("Ahhh, %d ships ran away %s!\n", howMuchRun, getName());
+ System.out.printf("Ahhh, %d ships ran away %s!\n", howMuchRun, player.getName());
} else {
System.out.printf("Escaped %d of them!\n", howMuchRun);
}
@@ -378,7 +371,7 @@ public class ShipWarfare extends Player {
System.out.printf("We got $%,d!", calculateLoot);
return true;
} else if (exitValue == 2) {
- gameOver();
+ player.gameOver();
return true;
} else if (exitValue == 3) {
System.out.printf("We made it out at %d%% ship status!\n", player.getHP());