Files
basic-computer-games/38_Fur_Trader/java/src/Pelt.java
Chris Reuter d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05:00

30 lines
546 B
Java

/**
* Pelt object - tracks the name and number of pelts the player has for this pelt type
*/
public class Pelt {
private final String name;
private int number;
public Pelt(String name, int number) {
this.name = name;
this.number = number;
}
public void setPeltCount(int pelts) {
this.number = pelts;
}
public int getNumber() {
return this.number;
}
public String getName() {
return this.name;
}
public void lostPelts() {
this.number = 0;
}
}