Skip to content

JBWAPI 1.4

Compare
Choose a tag to compare
@JasperGeurtz JasperGeurtz released this 20 Apr 07:21
· 129 commits to develop since this release

BWAPI/BWMirror compatibility

  • support printing colored text using varargs
game.drawTextScreen(50, 50, "%cHello %cWorld!", Text.Red, Text.Green);
  • points can now also be constructed using other pointtypes (BWAPI style), the p.toXPosition() methods will always stay available (BWMirror style)
TilePosition tp = new TilePosition(20, 12);
Position p = new Position(tp);
  • bwapi.Color now has an implemented toString method displaying which color is being used in case of a standard bwapi color. Else it displays the custom RGB values.

BWEM/BWTA

  • methods getTile, getCenter and getStartingLocations now directly available from BWMap instead of needing to use getData() or even getData().getMapData()
  • marked BWTA as deprecated instead of writing a warning to stderr (fixes bots using BWTA hanging at start if launched by the Tournament manager)

Fixes

  • bwapi.Text color Turquoise fixed (was displaying yellow)