removed tilewidth because the map data will not need this
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
package netwerkprog.game.client;
|
package netwerkprog.game.client;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Map class to hold a 2d array of tiles which will specify the map
|
||||||
|
*/
|
||||||
public class Map {
|
public class Map {
|
||||||
private char[][] map;
|
private char[][] map;
|
||||||
private int tileWidth = 16;
|
|
||||||
|
|
||||||
public Map(int size) {
|
public Map(int size) {
|
||||||
this(size,size);
|
this(size,size);
|
||||||
@@ -12,14 +14,6 @@ public class Map {
|
|||||||
this.map = new char[height][width];
|
this.map = new char[height][width];
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTileWidth(int tileWidth) {
|
|
||||||
this.tileWidth = tileWidth;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getTileWidth() {
|
|
||||||
return tileWidth;
|
|
||||||
}
|
|
||||||
|
|
||||||
public char[][] get() {
|
public char[][] get() {
|
||||||
return this.map;
|
return this.map;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user