-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapReaderInterface.java
56 lines (50 loc) · 1.17 KB
/
MapReaderInterface.java
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// --== CS400 File Header Information ==--
// Name: Fangjun Zhou
// Email: [email protected]
// Team: CG blue
// TA: Xi
// Lecturer: Gary Dahl
// Notes to Grader: <optional extra notes>
/**
* The interface that provide data for the backend developer
*
* @author fangjunzhou
* @version 1.0
*/
public interface MapReaderInterface<T> {
/**
* Get the map generated by data wrangler
*
* @return a Map object implements GraphADT
*/
public GraphADT<T> getMap();
/**
* An overload of getMap function, can specify the size of the map
*
* @param width the width of the map
* @param height the height of the map
* @return the generated map
*/
public GraphADT<T> getMap(int width, int height);
/**
* Get the width of the whole map
*
* @return the width of the map
*/
public int getMapSizeX();
/**
* Get the height of the whole map
*
* @return the height of the whole map
*/
public int getMapSizeY();
/**
* Get all the map names that frontend and backend can use
*
* @return all the map names
*/
public static String[] getMapNames(){
String[] mapNames = {"emptyMap", "testMap"};
return mapNames;
}
}