You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bfb33aa
Browse filesBrowse the repository at this point in the historyBrowse files
Jasper Geurtz
committed
Align JBWAPI behavior and bug fixes with C++ BWAPI 4.4.0
- CommandTemp: subtract gas cost on Upgrade; fix Cancel_Train_Slot queue shift OOB
- Unit: fix canBuildAddon(UnitType) overload call, canAttackGrouped(Position) check, isTargetable visibility check, canTargetUnit(Unit) default checkCommandibility, isVisible replay fallback/bounds check, and build/train/useTech special-case redirects
- Bullet: fix isVisible replay fallback and player ID bounds check
- Player: fix isEnemy/isNeutral delegation to PlayerData and supplyTotal/supplyUsed Race.None and bounds checks
- Region: fix updateNeighbours accessibility check to compare regionGroupID
- Game: refresh allies/enemies/observers each frame and fix drawEllipseScreen coordinate type
- BuildingPlacer: avoid mutating original PlacementReserve in ReserveDefault
- UnitCommand: include Repair in isQueued
- Add unit tests for all BWAPI 4.4.0 alignment fixes
Copy file name to clipboardExpand all lines: src/main/java/bwapi/Bullet.java
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -180,11 +180,17 @@ public boolean isVisible() {
180
180
* @param player If this parameter is specified, then the Bullet's visibility to the given player is checked. If this parameter is omitted, then a default value of null is used, which will check if the BWAPI player has vision of the {@link Bullet}.
181
181
* @return true if the {@link Bullet} is visible to the specified player, false if the {@link Bullet} is not visible to the specified player.
0 commit comments