minor changes. Still in progress.

This commit is contained in:
Vikram
2019-02-25 18:31:54 -07:00
parent 8d35d073e4
commit d1c3fe0f7e
5 changed files with 230 additions and 87 deletions

View File

@@ -16,6 +16,7 @@ public class Player {
private int wGeneral = 0;
private int wArms = 0;
private boolean retire = false;
private int cargoSpace = 60;
public Player(){
@@ -39,6 +40,24 @@ public class Player {
}
/**
* getter method for the instance variable cargoSpace.
* @return cargoSpace
*/
public int getCargoSpace() {
return cargoSpace;
}
/**
* setter method for cargoSpace.
* @param cargoSpace
*/
public void setCargoSpace(int cargoSpace) {
if(cargoSpace > 0){
this.cargoSpace = cargoSpace;
}
}
public boolean getRetire(){
return retire;
}