-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap.java
More file actions
34 lines (31 loc) · 774 Bytes
/
Map.java
File metadata and controls
34 lines (31 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
public class Map {
private static int levels,length,steps;
private static String map ="";
static MapSymbols symbols = new MapSymbols();
Player player;
Enemy enemy;
public Map(){
length = 10;
levels = 3;
steps = 2;
buildMap();
}
public Map(int length,int levels,int steps){
this.length=length;
this.levels=levels;
this.steps=steps;
buildMap();
}
public static String buildMap(){
symbols.createMap(levels,length,steps);
//System.out.println(getMap());
setMap(symbols.getDumMap());
return map;
}
public static String getMap(){
return map;
}
public static void setMap(String string){
map += string;
}
}