forked from JavaBWAPI/JBWAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBWEMAvailabilityTest.java
More file actions
45 lines (32 loc) · 1.17 KB
/
Copy pathBWEMAvailabilityTest.java
File metadata and controls
45 lines (32 loc) · 1.17 KB
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
package other;
import bwem.Altitude;
import bwem.BWEM;
import bwem.BWMap;
/**
* Simple class to check all required public methods are available
*/
public class BWEMAvailabilityTest {
void ignore() {
// BWEM
BWEM bwem = new BWEM(null);
bwem.initialize();
//BWMap
BWMap map = bwem.getMap();
map.automaticPathUpdate();
map.enableAutomaticPathAnalysis();
// called FindBasesForStartingLocations in BWEM
map.assignStartingLocationsToSuitableBases();
// Available in map.getData().getMapData()
// // Returns the size of the Map in Tiles.
// const BWAPI::TilePosition & Size() const { return m_Size; }
//
// // Returns the size of the Map in MiniTiles.
// const BWAPI::WalkPosition & WalkSize() const { return m_WalkSize; }
// // Returns the center of the Map in pixels.
//const BWAPI::Position &Center() const { return m_center; }
// // Returns a random position in the Map in pixels.
// BWAPI::Position RandomPosition() const;
// called MaxAltitude in BWEM
Altitude at = map.getHighestAltitude();
}
}