commentaar substractPoints(double angle)
This commit is contained in:
@@ -372,9 +372,13 @@ public class Worm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* substract the current points of the worm
|
||||||
*
|
*
|
||||||
* @param angle
|
* @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) {
|
private void subtractPoints (double angle) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user