1package com.runehive.content.activity;
3import com.runehive.game.world.entity.combat.CombatType;
4import com.runehive.game.world.entity.combat.attack.listener.CombatListener;
5import com.runehive.game.world.entity.combat.hit.Hit;
6import com.runehive.game.world.entity.mob.Mob;
A Activity object constructs an in-game activity and sequences it through the start() and finish() me...
void onDeath(Mob attacker, Mob defender, Hit hit)
void onKill(Mob attacker, Mob defender, Hit hit)
void hitsplat(Mob attacker, Mob defender, Hit hit)
void block(Mob attacker, Mob defender, Hit hit, CombatType combatType)
boolean withinDistance(Mob attacker, Mob defender)
boolean canAttack(Mob attacker, Mob defender)
void hit(Mob attacker, Mob defender, Hit hit)
final T activity
The parent activity.
ActivityListener(T activity)
Constructs a new ActivityListener for a activity.
void finishIncoming(Mob attacker, Mob defender)
void attack(Mob attacker, Mob defender, Hit hit)
void preKill(Mob attacker, Mob defender, Hit hit)
Called before attacker killed defender.
void start(Mob attacker, Mob defender, Hit[] hits)
void preDeath(Mob attacker, Mob defender, Hit hit)
boolean canOtherAttack(Mob attacker, Mob defender)
void finishOutgoing(Mob attacker, Mob defender)
void onDamage(Mob defender, Hit hit)
A Hit object holds the damage amount and hitsplat data.
A combat attack is used to describe what the attacking and defending mobs should do in each stage of ...