From 21cdb915ce443775eb21e165c5ae723e410b20b7 Mon Sep 17 00:00:00 2001 From: Immanuel Alvaro Bhirawa Date: Fri, 17 Mar 2023 10:31:12 +1100 Subject: [PATCH] Added comments for Skeleton files --- src/comp1110/ass2/skeleton/board.java | 8 ++++++-- src/comp1110/ass2/skeleton/player.java | 5 +++++ src/comp1110/ass2/skeleton/setup.java | 3 +++ src/comp1110/ass2/skeleton/tile.java | 3 +++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/comp1110/ass2/skeleton/board.java b/src/comp1110/ass2/skeleton/board.java index ee3a652..4107057 100644 --- a/src/comp1110/ass2/skeleton/board.java +++ b/src/comp1110/ass2/skeleton/board.java @@ -1,9 +1,13 @@ package comp1110.ass2.skeleton; public class board { - public final island[] islands; - public final stoneCircle[] stoneCircles; + public final island[] islands; // There will be 8 different sized island so maybe gonna have to add an islandSize method + public final stoneCircle[] stoneCircles; // a place that contains resources and statuetes, has 32 of them on the board + /* [Added Comment] + // Maybe gonna need to implement a random method to randomize the type and amount of resources on different stoneCircles + // Also maybe implement a method that turns every tiles beside the island tiles to be water tiles? + */ public board(island[] islands, stoneCircle[] stoneCircles) { // Needed to stop the compiler complaining about the final fields not being set this.islands = islands; diff --git a/src/comp1110/ass2/skeleton/player.java b/src/comp1110/ass2/skeleton/player.java index 60bc580..efd37d4 100644 --- a/src/comp1110/ass2/skeleton/player.java +++ b/src/comp1110/ass2/skeleton/player.java @@ -6,6 +6,11 @@ public class player { public int score; public piece[] pieces; + /* [Added comment] + public resources[] playerResource; // to put into account what the players' resources are at the end of each turn + // import the Scoring class to here to process the players' resources and update each of the player's scores accordingly + */ + public player(String name, int age) { // Needed to stop the compiler complaining about the final fields not being set this.name = name; diff --git a/src/comp1110/ass2/skeleton/setup.java b/src/comp1110/ass2/skeleton/setup.java index 19d04a7..cfba85d 100644 --- a/src/comp1110/ass2/skeleton/setup.java +++ b/src/comp1110/ass2/skeleton/setup.java @@ -24,6 +24,9 @@ public class setup { /** * This method creates a player. + * + * [added comment] + * According to the amount of players that play, set each of the players' different amount of villagers and settlers */ public void playerSetup() { diff --git a/src/comp1110/ass2/skeleton/tile.java b/src/comp1110/ass2/skeleton/tile.java index a94d38d..47ec6c1 100644 --- a/src/comp1110/ass2/skeleton/tile.java +++ b/src/comp1110/ass2/skeleton/tile.java @@ -14,4 +14,7 @@ public class tile { this.x = x; this.y = y; } + + // added comment + // a placeOn method here? }