Fixed up last of the bug fixes, this should be it up until the interactive demo
This commit is contained in:
@@ -2,6 +2,17 @@ package logic;
|
||||
|
||||
public class GameEndLogic extends Player{
|
||||
|
||||
|
||||
/**
|
||||
* Class Constructor that takes in a type player as a parameter
|
||||
*
|
||||
* @param player object of the class Player
|
||||
*/
|
||||
public GameEndLogic(Player player) {
|
||||
Player playerDummy = new Player(player);
|
||||
setPlayer(playerDummy);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates the networth of the player by the end of the game.
|
||||
* Calculation is based off the total guns and items bought throughout the game
|
||||
|
||||
@@ -36,10 +36,10 @@ public class StartLogic extends Player {
|
||||
* sets the player's money, bank, guns, hp, ad cargo space to max values.
|
||||
*/
|
||||
public void cheat() {
|
||||
setMoney(999999999);
|
||||
setBank(999999999);
|
||||
setGuns(999);
|
||||
setHP(99999999);
|
||||
setCargoSpace(99999999);
|
||||
setMoney(1000000);
|
||||
setBank(1000000);
|
||||
setGuns(1000000);
|
||||
setHP(1000000);
|
||||
setCargoSpace(100000000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user