commentaar substractPoints(double angle)

This commit is contained in:
Leen Dereu
2018-03-08 12:39:55 +01:00
parent 8aefb0c492
commit 2add5e583a

View File

@@ -372,9 +372,13 @@ public class Worm {
}
/**
*
* substract the current points of the worm
*
* @param angle
* the angle needed to calculate the new current points
* @post the current points are set to the old current points minus
* the angle (in degrees) divided by 6
* |setPoints(this.points - (int) ceil(toDegrees(angle) / 6))
*/
private void subtractPoints (double angle) {