Package com.epicbot.api.shared.query
Class LocatableEntityQueryBuilder<T extends LocatableEntity,Q extends LocatableEntityQueryBuilder<T,Q,R,RQ>,R extends LocatableEntityQueryResult<T>,RQ extends LocatableEntityQueryRequest<T>>
java.lang.Object
com.epicbot.api.shared.query.AbstractQueryBuilder<T,Q,R,RQ>
com.epicbot.api.shared.query.RenderableQueryBuilder<T,Q,R,RQ>
com.epicbot.api.shared.query.LocatableEntityQueryBuilder<T,Q,R,RQ>
- Direct Known Subclasses:
GameEntityQueryBuilder,GraphicsObjectQueryBuilder,ProjectileQueryBuilder
public abstract class LocatableEntityQueryBuilder<T extends LocatableEntity,Q extends LocatableEntityQueryBuilder<T,Q,R,RQ>,R extends LocatableEntityQueryResult<T>,RQ extends LocatableEntityQueryRequest<T>>
extends RenderableQueryBuilder<T,Q,R,RQ>
-
Field Summary
Fields inherited from class com.epicbot.api.shared.query.RenderableQueryBuilder
INVISIBLE_FILTER, VISIBLE_FILTERFields inherited from class com.epicbot.api.shared.query.AbstractQueryBuilder
ctx, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Qdistance(double maximum) Set the max distance (using euclidean distance) for this query.final Qdistance(double minimum, double maximum) Set the min and max distance (using euclidean distance) for this query.final QSet the max distance (using euclidean distance) between the entity and another locatable.final QSet the min and max distance (using euclidean distance) between the entity and another locatable.id(int... ids) final QChecks if the entity is located on ONE of the given tiles.final QnotLocated(Locatable... locatables) Checks if the entity is NOT located on ANY of the given tiles.final QChecks if the entity is NOT located in ANY of the given areas.reachableFrom(Locatable locatable) results()results(DistanceFunction distanceFunction) final QtileDistance(int maximum) Set the max tile distance (using Chebyshev distance) for this query.final QtileDistance(int minimum, int maximum) Set the min and max tile distance (using Chebyshev distance) for this query.final QtileDistance(Locatable other, int maximum) Set the max tile distance (using Chebyshev distance) between the entity and another locatable.final QtileDistance(Locatable other, int minimum, int maximum) Set the min and max tile distance (using Chebyshev distance) between the entity and another locatable.unreachableFrom(Locatable locatable) final QChecks if the entity is located in ONE of the given areas.Methods inherited from class com.epicbot.api.shared.query.RenderableQueryBuilder
contains, invisible, visibleMethods inherited from class com.epicbot.api.shared.query.AbstractQueryBuilder
accepts, asList, asSet, filter, getRequest, request
-
Constructor Details
-
Method Details
-
results
- Overrides:
resultsin classAbstractQueryBuilder<T extends LocatableEntity,Q extends LocatableEntityQueryBuilder<T, Q, R, RQ>, R extends LocatableEntityQueryResult<T>, RQ extends LocatableEntityQueryRequest<T>>
-
results
-
id
-
distance
Set the max distance (using euclidean distance) for this query.- Parameters:
maximum-- Returns:
- this
-
distance
Set the min and max distance (using euclidean distance) for this query.- Parameters:
minimum-maximum-- Returns:
- this
-
tileDistance
Set the max tile distance (using Chebyshev distance) for this query.- Parameters:
maximum-- Returns:
- this
-
tileDistance
Set the min and max tile distance (using Chebyshev distance) for this query.- Parameters:
minimum-maximum-- Returns:
- this
-
reachable
-
unreachable
-