mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 20:54:07 -08:00
Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment. This change fixes that.
This commit is contained in:
29
38_Fur_Trader/java/src/Pelt.java
Normal file
29
38_Fur_Trader/java/src/Pelt.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user