Class CombatMonitoringService
java.lang.Object
org.rspeer.game.service.combat.CombatMonitoringService
- All Implemented Interfaces:
org.rspeer.event.Service, CombatService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttacksAgainst(PathingEntity<?> entity, int lookbackTicks) Returns a deque of attacks recently performed against the specified entity.getAttacksFrom(PathingEntity<?> entity, int lookbackTicks) Returns a deque of attacks recently performed by the specified entity.getDebuffs(PathingEntity<?> entity, int lookbackTicks) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CombatService
getAttackCooldownTicks, getAttacksAgainst, getAttacksFromMethods inherited from interface org.rspeer.event.Service
onSubscribe, onUnsubscribe
-
Constructor Details
-
CombatMonitoringService
public CombatMonitoringService()
-
-
Method Details
-
getAttacksFrom
Description copied from interface:CombatServiceReturns a deque of attacks recently performed by the specified entity.The result is ordered with the most recent attack at the front (accessible via
peekFirst()) and the oldest within the lookback window at the back.- Specified by:
getAttacksFromin interfaceCombatService- Parameters:
entity- the entity whose outgoing attacks should be retrievedlookbackTicks- the maximum number of ticks to search backward in history- Returns:
- a deque of outgoing attacks, newest first (never
null)
-
getAttacksAgainst
Description copied from interface:CombatServiceReturns a deque of attacks recently performed against the specified entity.The result is ordered with the most recent incoming attack at the front (accessible via
peekFirst()) and the oldest within the lookback window at the back.- Specified by:
getAttacksAgainstin interfaceCombatService- Parameters:
entity- the target entity whose incoming attacks should be retrievedlookbackTicks- the maximum number of ticks to search backward in history- Returns:
- a deque of incoming attacks, newest first (never
null)
-
getDebuffs
- Specified by:
getDebuffsin interfaceCombatService- Parameters:
entity- the entity whose debuffs should be retrievedlookbackTicks- the maximum number of ticks to search backward in history- Returns:
- a deque of debuff attacks that this entity was hit by, newest first (never
null)
-