8889909192939495
public boolean altersResourceEdge(Long resEdgeID) { return this.resEdgeID.equals(resEdgeID); } public void execute() { ResourceEdge resEdge = Game.getGame().getResourceEdge(resEdgeID); resEdge.setAmount(newAmount); }
119120121122123124125126127
return resEdges.contains(resEdgeID); } public void execute() { for (Long resEdgeID : resEdges) { ResourceEdge resEdge = Game.getGame().getResourceEdge(resEdgeID); resEdge.setAmount(newAmount.clone()); } }
138139140141142143144145146
return amounts.containsKey(resEdgeID); } public void execute() { for (Long resEdgeID : amounts.keySet()) { ResourceEdge resEdge = Game.getGame().getResourceEdge(resEdgeID); resEdge.setAmount(amounts.get(resEdgeID)); } }