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

@@ -0,0 +1,24 @@
package logic;
public class LoanSharkLogic 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 LoanSharkLogic(Player player) {
Player playerDummy = new Player(player);
setPlayer(playerDummy);
}
/**
* Used to set and change loans for the Player
* @param debt the amount of money the loan is for
* @param money How much money is either taken or give to the Player
*/
public void changeLoan(int debt, int money) {
setDebt(debt);
setMoney(money);
}
}