Skip to content

Commit

Permalink
Add gate to dispatch API (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjeshshrestha authored Mar 6, 2024
1 parent 8971925 commit 5c3449b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions api/src/main/java/eu/darkbot/api/managers/DispatchAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public interface DispatchAPI extends API.Singleton {
*/
Retriever getSelectedRetriever();

/**
* @return The {@code List} of all available gates
*/
List<? extends Gate> getAvailableGates();

/**
* In game retriever representation, includes name, in game name, type, duration &amp; slot id
*/
Expand Down Expand Up @@ -95,6 +100,51 @@ interface Retriever {
Cost getInstantCost();
}

/**
* In game gate representation, includes name, in game name, type, duration &amp; 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
*/
Expand Down

0 comments on commit 5c3449b

Please sign in to comment.