package vooga.rts.gamedesign.strategy.gatherstrategy; import vooga.rts.gamedesign.sprite.gamesprites.interactive.IGatherable; import vooga.rts.gamedesign.sprite.gamesprites.interactive.InteractiveEntity; import vooga.rts.gamedesign.strategy.Strategy; /** * * This class implements GatherStrategy and is used as an instance in * interactives for objects that are not able to gather resources. * * @author Ryan Fishel * @author Kevin Oh * @author Francesco Agosti * @author Wenshun Liu * */ public class CannotGather implements GatherStrategy { /** * Creates a new gather strategy that represents a unit that cannot * gather resources. */ public CannotGather() { } @Override public void gatherResource(int playerID, IGatherable gatherable) { } @Override public void update(double elapsedTime) { } @Override public int getGatherAmount() { return 0; } @Override public void setGatherAmount(int gatherAmount) { return; } public void copyStrategy(InteractiveEntity other) { other.setGatherStrategy(this); } }