From ff2b64d4764b9a0ad46208c16bd116e0e91e85bd Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Mon, 2 Dec 2024 08:39:47 +0100 Subject: [PATCH] removed errors in java doc --- .../src/main/java/pp/monopoly/client/MonopolyApp.java | 2 +- .../main/java/pp/monopoly/client/gui/TestWorld.java | 1 - .../monopoly/message/client/BuyPropertyResponse.java | 3 +-- .../java/pp/monopoly/message/client/PlayerReady.java | 10 +++++----- .../java/pp/monopoly/message/client/TradeOffer.java | 1 - .../java/pp/monopoly/message/client/TradeResponse.java | 2 +- .../java/pp/monopoly/message/server/TradeReply.java | 2 +- .../java/pp/monopoly/message/server/TradeRequest.java | 1 - .../pp/monopoly/message/server/ViewAssetsResponse.java | 5 ++--- .../model/src/main/java/pp/monopoly/model/Figure.java | 3 +-- .../pp/monopoly/notification/ItemRemovedEvent.java | 1 - 11 files changed, 12 insertions(+), 19 deletions(-) diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java index e22ccfe..a408459 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java @@ -496,7 +496,7 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga /** * Retrieves the unique identifier associated with the server connection. * - * Checks if a Server is connected and returns {@Code 0} if there is no connection + * Checks if a Server is connected and returns 0 if there is no connection * * @return the ID of the connected Server instance. */ diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java index fea1a9a..f9c967c 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java @@ -58,7 +58,6 @@ public class TestWorld implements GameEventListener { * Konstruktor für die TestWorld. * * @param app Die Hauptanwendung - * @param players Die Liste der Spieler mit ihren Figuren */ public TestWorld(MonopolyApp app) { this.app = app; diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/BuyPropertyResponse.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/BuyPropertyResponse.java index 6ddc24d..f4b6f6a 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/BuyPropertyResponse.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/BuyPropertyResponse.java @@ -9,9 +9,8 @@ import com.jme3.network.serializing.Serializable; public class BuyPropertyResponse extends ClientMessage{ /** - * Constructs a BuyPropertyRequest with the specified property ID. + * Constructs a BuyPropertyRequest * - * @param propertyId the ID of the property to buy */ public BuyPropertyResponse() {} diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/PlayerReady.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/PlayerReady.java index ee61d11..b77ad27 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/PlayerReady.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/PlayerReady.java @@ -18,11 +18,11 @@ public class PlayerReady extends ClientMessage { private PlayerReady() { /* empty */ } /** - * Constructs a PlayerReady message. - * - * @param isReady true if the player is ready, false otherwise - * @param name the name of the player - * @param color the color of the player (can be null) + * Constructs a PlayerReady message + * @param isReady is the player ready + * @param name the name of the Player + * @param figure the figure corresponding to the Player + * @param startMoney the initial capital of the game */ public PlayerReady(boolean isReady, String name, String figure, int startMoney) { this.isReady = isReady; diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeOffer.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeOffer.java index 560ecad..3ae8aa7 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeOffer.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeOffer.java @@ -19,7 +19,6 @@ public class TradeOffer extends ClientMessage{ /** * Constructs a TradeOffer with the specified details. * - * @param receiverId the ID of the player receiving the Request * @param tradehandler the tradehandler */ public TradeOffer(TradeHandler tradehandler) { diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeResponse.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeResponse.java index d286107..03b3ce8 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeResponse.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/client/TradeResponse.java @@ -21,7 +21,7 @@ public class TradeResponse extends ClientMessage{ * Constructs a TradeResponse with the specified response details. * * @param status the ID of the player who initiated the trade - * @param accepted true if the offer is accepted, false if declined + * @param tradeHandler the TradeHandler corresponding to the Trade */ public TradeResponse(boolean status, TradeHandler tradeHandler) { this.status = status; diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeReply.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeReply.java index df6918a..8f4edd1 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeReply.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeReply.java @@ -21,7 +21,7 @@ public class TradeReply extends ServerMessage{ * Constructs a TradeResponse with the specified response details. * * @param status the ID of the player who initiated the trade - * @param accepted true if the offer is accepted, false if declined + * @param tradeHandler the TradeHandler corresponding to the trade */ public TradeReply(boolean status, TradeHandler tradeHandler) { this.status = status; diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeRequest.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeRequest.java index c98ada9..16df203 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeRequest.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/TradeRequest.java @@ -20,7 +20,6 @@ public class TradeRequest extends ServerMessage{ /** * Constructs a TradeRequest with the specified details. * - * @param receiverId the ID of the player receiving the Request * @param tradehandler the tradehandler */ public TradeRequest(TradeHandler tradehandler) { diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/ViewAssetsResponse.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/ViewAssetsResponse.java index 76c1467..301547e 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/ViewAssetsResponse.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/message/server/ViewAssetsResponse.java @@ -19,10 +19,9 @@ public class ViewAssetsResponse extends ServerMessage{ private ViewAssetsResponse() { /* empty */ } /** + * * Constructs a ViewAssetsResponse with the specified properties and account balance. - * - * @param properties a List of PropertyField objects representing the player's properties - * @param accountBalance the player's current account balance + * @param board the BoardManager representing the current Status */ public ViewAssetsResponse(BoardManager board) { this.board = board; diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/model/Figure.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/model/Figure.java index d1bf462..c64a384 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/model/Figure.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/model/Figure.java @@ -82,8 +82,7 @@ public class Figure implements Item{ /** * Moves the Figure to the specified coordinates. * - * @param x the new x-coordinate of the Figure's position - * @param y the new y-coordinate of the Figure's position + * @param fieldId the position to move to */ public void moveTo(int fieldId) { moveTo(fieldIdToPosition(fieldId)); diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/notification/ItemRemovedEvent.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/notification/ItemRemovedEvent.java index c7447cc..462fc55 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/notification/ItemRemovedEvent.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/notification/ItemRemovedEvent.java @@ -13,7 +13,6 @@ import pp.monopoly.model.Item; /** * Event when an item gets removed. * - * @param item the destroyed item */ public class ItemRemovedEvent { private final Item item;