Added comments for Skeleton files

This commit is contained in:
Immanuel Alvaro Bhirawa 2023-03-17 10:31:12 +11:00
parent 579d3b92d3
commit 21cdb915ce
4 changed files with 17 additions and 2 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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() {

View File

@ -14,4 +14,7 @@ public class tile {
this.x = x;
this.y = y;
}
// added comment
// a placeOn method here?
}