From 68fe4fd7409de7b296f45a4368a8048e192c929e Mon Sep 17 00:00:00 2001 From: Anjesh Shrestha Date: Wed, 6 Mar 2024 12:05:06 -0700 Subject: [PATCH] add dispatch gate --- .../eu/darkbot/api/managers/DispatchAPI.java | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/api/src/main/java/eu/darkbot/api/managers/DispatchAPI.java b/api/src/main/java/eu/darkbot/api/managers/DispatchAPI.java index cac1308a..8b6b48db 100644 --- a/api/src/main/java/eu/darkbot/api/managers/DispatchAPI.java +++ b/api/src/main/java/eu/darkbot/api/managers/DispatchAPI.java @@ -39,6 +39,11 @@ public interface DispatchAPI extends API.Singleton { */ Retriever getSelectedRetriever(); + /** + * @return The {@code List} of all available gates + */ + List getAvailableGates(); + /** * In game retriever representation, includes name, in game name, type, duration & slot id */ @@ -95,6 +100,51 @@ interface Retriever { Cost getInstantCost(); } + /** + * In game gate representation, includes name, in game name, type, duration & slot id + */ + interface Gate { + /** + * @return status + */ + int getStatus(); + + /** + * @return gate Id + */ + int getGateId(); + + /** + * @return the time to build + */ + int getDuration(); + + /** + * @return the time left to complete + */ + double getTimeLeft(); + + /** + * @return gate dispatch id + */ + String getDispatchId(); + + /** + * @return in game variable name + */ + String getIconId(); + + /** + * @return game name + */ + String getName(); + + /** + * @return cost for the gate + */ + Cost getCost(); + } + /** * In game representation of cost of retriever */