Update StartText.java
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package text;
|
package text;
|
||||||
|
|
||||||
import logic.Player;
|
import logic.Player;
|
||||||
|
import logic.StartLogic;
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
|
|
||||||
public class StartText extends Player {
|
public class StartText extends Player {
|
||||||
@@ -21,21 +21,16 @@ public class StartText extends Player {
|
|||||||
setName(userInput.nextLine());
|
setName(userInput.nextLine());
|
||||||
System.out.println("Do you want to start . . .\n\t1) With cash (and a debt)\n\t\t\t>> or <<\n\t" + "2) With five guns and no cash (But no debt!)?\n ");
|
System.out.println("Do you want to start . . .\n\t1) With cash (and a debt)\n\t\t\t>> or <<\n\t" + "2) With five guns and no cash (But no debt!)?\n ");
|
||||||
int input = userInput.nextInt();
|
int input = userInput.nextInt();
|
||||||
|
StartLogic startLogic = new StartLogic(getPlayer());
|
||||||
if (input == 1) {
|
if (input == 1) {
|
||||||
setMoney(400);
|
startLogic.money_and_debt();
|
||||||
setDebt(5000);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if (input == 2) {
|
if (input == 2) {
|
||||||
setGuns(5);
|
startLogic.guns();
|
||||||
}
|
}
|
||||||
// purely for testing purposes.
|
// purely for testing purposes.
|
||||||
if (getName().equalsIgnoreCase("Vikram")) {
|
if (getName().equalsIgnoreCase("Vikram")) {
|
||||||
setMoney(999999999);
|
startLogic.cheat();
|
||||||
setBank(999999999);
|
|
||||||
setGuns(999);
|
|
||||||
setHP(99999999);
|
|
||||||
setCargoSpace(99999999);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user