Skip to content

Commit 137a9ec

Browse files
committed
add returncargo unit command
1 parent ea9705e commit 137a9ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/bwapi/Unit.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,14 @@ public boolean gather(final Unit target, final boolean shiftQueueCommand){
979979
return issueCommand(UnitCommand.gather(this, target, shiftQueueCommand));
980980
}
981981

982+
public boolean returnCargo() {
983+
return issueCommand(UnitCommand.returnCargo(this));
984+
}
985+
986+
public boolean returnCargo(final boolean shiftQueueCommand) {
987+
return issueCommand(UnitCommand.returnCargo(this, shiftQueueCommand));
988+
}
989+
982990
public boolean repair(final Unit target){
983991
return issueCommand(UnitCommand.repair(this, target));
984992
}

0 commit comments

Comments
 (0)