Lines Matching refs:amount
63 public boolean canMoveBackwards(final int amount) {
64 return (-1 <= (this.currentRopePos - amount));
95 public void moveBackwards(final int amount) {
96 if (!this.canMoveBackwards(amount))
97 throw new IllegalArgumentException("Unable to move backwards " + amount + ".");
98 this.currentRopePos -= amount;
99 this.currentAbsolutePos -= amount;
102 public void moveForward(final int amount) {
103 this.currentAbsolutePos += amount;
104 int remainingAmt = amount;
114 throw new IllegalArgumentException("Unable to move forward " + amount + ". Reached end of rope.");