OpenBW / BWAPI4J

BWAPI wrapper for Java
GNU Lesser General Public License v3.0
23 stars 9 forks source link

Missing UnitCommand #81

Open Jabbo16 opened 6 years ago

Jabbo16 commented 6 years ago

I noticed some bots use UnitCommand for micro and order spam checks but It seems that in BWAPI4J there is only UnitCommandType available with getLastCommand.

adakitesystems commented 6 years ago

Do you have a specific example? I think UnitCommand was intentionally left out because UnitCommand is basically UnitCommandType + Order + OrderTarget, etc. I haven't looked at it too closely, though.

dgant commented 6 years ago

UnitCommand reflects what was sent to the game engine via BWAPI. Orders reflect the state of the game engine.

UnitCommands are a nice-to-have, but their functionality can be reproduced by BWAPI4J consumers without the aid of the framework (ie. track what commands you issue).

Jabbo16 commented 6 years ago

Its easier to use UnitCommands than to track orders 😅

adakitesystems commented 6 years ago

Fair enough. I'll look into some time and see what can be done.

adakitesystems commented 5 years ago

UnitCommand.java has been implemented in the raw interface. This issue can be closed after raw is merged into develop.