Skip to content

Commit 130d91c

Browse files
committed
Fixes & updates for ship warp api, v0.9.9
1 parent 01ea7cf commit 130d91c

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

api/src/main/java/eu/darkbot/api/managers/ShipWarpAPI.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ public interface ShipWarpAPI extends API.Singleton {
1111

1212
/**
1313
* Open's ship warp window to update proxy data
14+
* @return true if done opening, false if more calls are required
1415
*/
15-
void updateShipList();
16+
boolean updateShipList();
1617

1718
/**
1819
* @return if Ship is near a station to warp for free
@@ -24,6 +25,26 @@ public interface ShipWarpAPI extends API.Singleton {
2425
*/
2526
List<? extends Ship> getShips();
2627

28+
/**
29+
* Works towards selecting a ship for warp, may require multiple calls
30+
* @param ship The ship to select for warping. Must be an instance obtained from {@link #getShips()}
31+
* @return true if done, false if failed or more calls are required
32+
*/
33+
boolean clickShip(Ship ship);
34+
35+
/**
36+
* Works towards selecting a ship for warp, may require multiple calls
37+
* @param index The index in {@link #getShips()} to warp to. Out of bounds return false.
38+
* @return true if done, false if failed or more calls are required
39+
*/
40+
boolean clickShip(int index);
41+
42+
/**
43+
* Works towards warping to the selected ship, may require multiple calls
44+
* @return true if done, false if more calls are required
45+
*/
46+
boolean clickWarp();
47+
2748
/**
2849
* In Game Ship representation to warp to
2950
*/

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
api(project(":darkbot-shared"))
2222
}
2323

24-
val apiVersion = "0.9.8"
24+
val apiVersion = "0.9.9"
2525

2626
allprojects {
2727
group = "eu.darkbot"

0 commit comments

Comments
 (0)