skeleton: Cleaned up code and md

This commit is contained in:
2023-03-15 17:28:02 +11:00
parent dc6e1258b2
commit 5463debddf
9 changed files with 113 additions and 114 deletions

View File

@@ -3,13 +3,18 @@ package comp1110.ass2.skeleton;
public class island {
public final int width;
public final int height;
public final int x;
public final int y;
public tile[][] tiles;
public final int score;
public island(int width, int height, int score) {
public island(int width, int height,int x, int y, int score, tile[][] tiles) {
// Needed to stop the compiler complaining about the final fields not being set
this.width = width;
this.height = height;
this.score = score;
this.tiles = new tile[width][height];
this.tiles = tiles;
this.x = x;
this.y = y;
}
}
}