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