From 733f17dbe8fe44c3b5c6e09986ba326c150df8dc Mon Sep 17 00:00:00 2001 From: jkonert Date: Tue, 10 May 2022 11:34:32 +0200 Subject: [PATCH] and yet another JavaDoc fix --- GameProject/src/controller/EgoController.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/GameProject/src/controller/EgoController.java b/GameProject/src/controller/EgoController.java index e9e393a..45890b5 100644 --- a/GameProject/src/controller/EgoController.java +++ b/GameProject/src/controller/EgoController.java @@ -44,7 +44,7 @@ public class EgoController extends ObjectController { /** * moves ego up by {@link SpaceInvadersLevel#EGOSPEED}. - * @param kc KeyEvent to process + * @param kc KeyEvent to process (ignored) * @param ego the ego object */ public void onUp(KeyEvent kc, GameObject ego) { @@ -54,7 +54,7 @@ public class EgoController extends ObjectController { /** * moves ego down by {@link SpaceInvadersLevel#EGOSPEED}. - * @param kc KeyEvent to process + * @param kc KeyEvent to process (ignored) * @param ego the ego object */ public void onDown(KeyEvent kc, GameObject ego) { @@ -64,7 +64,7 @@ public class EgoController extends ObjectController { /** * moves ego left by {@link SpaceInvadersLevel#EGOSPEED}. - * @param kc KeyEvent to process + * @param kc KeyEvent to process (ignored) * @param ego the ego object */ public void onLeft(KeyEvent kc, GameObject ego) { @@ -74,7 +74,7 @@ public class EgoController extends ObjectController { /** * moves ego right by {@link SpaceInvadersLevel#EGOSPEED}. - * @param kc KeyEvent to process + * @param kc KeyEvent to process (ignored) * @param ego the ego object */ public void onRight(KeyEvent kc, GameObject ego) { @@ -82,6 +82,11 @@ public class EgoController extends ObjectController { ego.setVX(SpaceInvadersLevel.EGOSPEED); } + /** + * sets speed to 0.0 + * @param kc KeyEvent to process (ignored) + * @param ego the ego object + */ public void onStop(KeyEvent kc, GameObject ego) { ego.setVY(0.0); ego.setVX(0.0);