Beispiel #1
0
 public void remove(ressourceStack stack)
 {
     newContent[stack.getRessource()] -= stack.getAmount();
 }
Beispiel #2
0
 public void add(ressourceStack stack)
 {
     this.newContent[stack.getRessource()] += stack.getAmount();
 }
Beispiel #3
0
 //checks if there's enough ressources to be taken
 public bool canTake(ressourceStack stack)
 {
     return(newContent[stack.getRessource()] >= stack.getAmount());
 }