Fixed JavaDoc

This commit is contained in:
Andreas Greiner 2021-04-29 17:07:15 +02:00
parent 2523cc67cc
commit e8cfbb70ba

View File

@ -19,7 +19,7 @@ public class GamePlayManager {
/** The manager, which handles the game objects */
private GameObjectManager gameObjectManager;
/** Flag, if the gameobjects were already deleted once */
private boolean listHasBeenDeleted = false;
private boolean listHasBeenDeleted;
/** Generator for random values */
private Random random;
@ -29,6 +29,7 @@ public class GamePlayManager {
* @param gameObjectManager
*/
public GamePlayManager(GameView gameView, GameObjectManager gameObjectManager) {
listHasBeenDeleted = false;
this.gameView = gameView;
this.gameObjectManager = gameObjectManager;
this.random = new Random();
@ -82,6 +83,10 @@ public class GamePlayManager {
}
}
/**
* Shoot a harpoon starting at a given position.
* @param startPosition the start position
*/
public void shootHarpoon(Position startPosition){
if(gameView.timerExpired("ShootHarpoon","GamePlayManager")){
Harpoon harpoon = new Harpoon(gameView);
@ -92,6 +97,10 @@ public class GamePlayManager {
}
}
/**
* Remove a harpoon from the game.
* @param harpoon the harpoon to remove
*/
public void destroy(Harpoon harpoon){
gameObjectManager.getHarpoons().remove(harpoon);
}