Skip to content

Commit 1b9ced7

Browse files
JasperGeurtzBytekeeper
authored andcommitted
move to other package to make non public non available
1 parent 90d3e7b commit 1b9ced7

File tree

4 files changed

+46
-21
lines changed

4 files changed

+46
-21
lines changed

src/main/java/bwem/BWMap.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import static bwem.AreaId.UNINITIALIZED;
2424

2525
public abstract class BWMap {
26-
2726
final List<Pair<Pair<AreaId, AreaId>, WalkPosition>> rawFrontier =
2827
new ArrayList<>();
2928
final Game game;
@@ -52,7 +51,6 @@ public TerrainData getData() {
5251
return this.terrainData;
5352
}
5453

55-
5654
public boolean isInitialized() {
5755
return (this.terrainData != null);
5856
}

src/main/java/bwem/TerrainData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public MiniTile getMiniTile(final WalkPosition walkPosition) {
5959
return getMiniTile(walkPosition, CheckMode.CHECK);
6060
}
6161

62-
public boolean isSeaWithNonSeaNeighbors(final WalkPosition walkPosition) {
62+
boolean isSeaWithNonSeaNeighbors(final WalkPosition walkPosition) {
6363
if (!getMiniTile(walkPosition).isSea()) {
6464
return false;
6565
}

src/test/java/bwem/BWEMAvailabilityTest.java

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package other;
2+
3+
4+
import bwem.Altitude;
5+
import bwem.BWEM;
6+
import bwem.BWMap;
7+
8+
/**
9+
* Simple class to check all required public methods are available
10+
*/
11+
public class BWEMAvailabilityTest {
12+
13+
14+
void ignore() {
15+
// BWEM
16+
BWEM bwem = new BWEM(null);
17+
bwem.initialize();
18+
19+
//BWMap
20+
BWMap map = bwem.getMap();
21+
map.automaticPathUpdate();
22+
map.enableAutomaticPathAnalysis();
23+
24+
// called FindBasesForStartingLocations in BWEM
25+
map.assignStartingLocationsToSuitableBases();
26+
27+
28+
// Available in map.getData().getMapData()
29+
// // Returns the size of the Map in Tiles.
30+
// const BWAPI::TilePosition & Size() const { return m_Size; }
31+
//
32+
// // Returns the size of the Map in MiniTiles.
33+
// const BWAPI::WalkPosition & WalkSize() const { return m_WalkSize; }
34+
35+
// // Returns the center of the Map in pixels.
36+
//const BWAPI::Position &Center() const { return m_center; }
37+
38+
// // Returns a random position in the Map in pixels.
39+
// BWAPI::Position RandomPosition() const;
40+
41+
// called MaxAltitude in BWEM
42+
Altitude at = map.getHighestAltitude();
43+
44+
}
45+
}

0 commit comments

Comments
 (0)