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