Redid a bunch of commenting making sure that every method was commented.

This commit is contained in:
2019-04-12 03:54:20 -06:00
parent 03ff12b832
commit f89c1aa209
28 changed files with 508 additions and 218 deletions

View File

@@ -4,7 +4,6 @@ public class StartLogic extends Player {
/**
* constructor; only runs when a Player object is provided. The constructor is fully encapsulated.
*
* @param player is a Player object that will be copied and the player instance variable is set to the copy.
*/
public StartLogic(Player player) {
@@ -13,9 +12,9 @@ public class StartLogic extends Player {
}
/**
* Used in the Start Class
* method that sets the player's money and debt to 400 and 5000 respectively.
* also sets the player's guns to 0.
*
*/
public void money_and_debt() {
setMoney(400);
@@ -24,17 +23,17 @@ public class StartLogic extends Player {
}
/**
* Used in the Start Class
* method that sets the player's guns to 5.
*
*/
public void guns() {
setGuns(5);
}
/**
* Used in the Start Class
* for testing purposes
* sets the player's money, bank, guns, hp, ad cargo space to max values.
*
*/
public void cheat() {
setMoney(999999999);