Search in sources :

Example 1 with BW

use of org.openbw.bwapi4j.BW in project BWAPI4J by OpenBW.

the class MapTest method Compare_MiniTile_Altitudes_to_Original_Samples_LIVE.

@Ignore
@Test
public void Compare_MiniTile_Altitudes_to_Original_Samples_LIVE() throws AssertionError, IOException {
    this.bw = new BW(this);
    this.bw.startGame();
    final BWEM_DummyData bwemDummyData = new BWEM_DummyData(this.bw.getBWMap().mapHash(), BWAPI_DummyData.DataSetBwapiVersion.BWAPI_420.toString(), BWEM_DummyData.DataSetBwemVersion.BWEM_141.toString());
    assertEquals_MiniTileAltitudes(this.bwemMap.getData(), bwemDummyData);
}
Also used : BW(org.openbw.bwapi4j.BW) BWEM_DummyData(mockdata.BWEM_DummyData) Ignore(org.junit.Ignore) Test(org.junit.Test)

Example 2 with BW

use of org.openbw.bwapi4j.BW in project BWAPI4J by OpenBW.

the class TestListenerBwem method main.

public static void main(String[] args) {
    final TestListenerBwem listener = new TestListenerBwem();
    final BW bw = new BW(listener);
    listener.bw = bw;
    bw.startGame();
}
Also used : BW(org.openbw.bwapi4j.BW)

Example 3 with BW

use of org.openbw.bwapi4j.BW in project BWAPI4J by OpenBW.

the class TestListenerYata method main.

/**
 * Test method.
 * @param args arguments
 */
public static void main(String[] args) {
    TestListenerYata listener = new TestListenerYata();
    BW bw = new BW(listener);
    listener.bw = bw;
    bw.startGame();
}
Also used : BW(org.openbw.bwapi4j.BW)

Example 4 with BW

use of org.openbw.bwapi4j.BW in project BWAPI4J by OpenBW.

the class UnitTypeTest method unitTypeTest.

@Test
public void unitTypeTest() {
    this.bw = new BW(this);
    this.bw.startGame();
    terranTest();
// zergTest();
// protossTest();
}
Also used : BW(org.openbw.bwapi4j.BW) Test(org.junit.Test)

Example 5 with BW

use of org.openbw.bwapi4j.BW in project BWAPI4J by OpenBW.

the class MapTest method Compare_ChokePoint_Centers_to_Original_Samples_LIVE.

@Ignore
@Test
public void Compare_ChokePoint_Centers_to_Original_Samples_LIVE() throws URISyntaxException, IOException {
    this.bw = new BW(this);
    this.bw.startGame();
    final BWEM_DummyData bwemDummyData = new BWEM_DummyData(this.bw.getBWMap().mapHash(), BWAPI_DummyData.DataSetBwapiVersion.BWAPI_420.toString(), BWEM_DummyData.DataSetBwemVersion.BWEM_141.toString());
    assert_ChokePoints(bwemDummyData.getChokePointCenters(), ((MapImpl) this.bwemMap).getGraph().getChokePoints());
}
Also used : BW(org.openbw.bwapi4j.BW) BWEM_DummyData(mockdata.BWEM_DummyData) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

BW (org.openbw.bwapi4j.BW)7 Test (org.junit.Test)4 Ignore (org.junit.Ignore)3 BWEM_DummyData (mockdata.BWEM_DummyData)2 ChokePoint (bwem.ChokePoint)1 IOException (java.io.IOException)1 URISyntaxException (java.net.URISyntaxException)1 BWEM_CPPathSamples (mockdata.BWEM_CPPathSamples)1 MutableInt (org.apache.commons.lang3.mutable.MutableInt)1 Position (org.openbw.bwapi4j.Position)1 WalkPosition (org.openbw.bwapi4j.WalkPosition)1