1package com.runehive.content.activity.impl.godwars;
3import com.runehive.content.activity.ActivityListener;
4import com.runehive.game.world.entity.combat.CombatType;
5import com.runehive.game.world.entity.combat.hit.Hit;
6import com.runehive.game.world.entity.mob.Mob;
7import com.runehive.game.world.entity.mob.npc.Npc;
9import static com.runehive.content.activity.impl.godwars.GodwarsActivity.*;
24 System.out.println(defender);
26 return super.canAttack(attacker, defender);
31 if (npc.
id == 3166 || npc.
id == 3167 || npc.
id == 3168 || npc.
id == 3172 || npc.
id == 3176 || npc.
id == 3183) {
38 return super.
canAttack(attacker, defender);
43 if (defender.
isNpc()) {
void hit(Mob attacker, Mob defender, Hit hit)
final T activity
The parent activity.
ActivityListener(T activity)
Constructs a new ActivityListener for a activity.
Handles the godwars activity.
void onKill(Mob attacker, Mob defender, Hit hit)
boolean canAttack(Mob attacker, Mob defender)
GodwarsListener(GodwarsActivity activity)
A Hit object holds the damage amount and hitsplat data.
abstract< T extends Mob > CombatStrategy<? super T > getStrategy()
The combat strategy of the mob.
final boolean isNpc()
Check if an entity is an npc.
final boolean isPlayer()
Check if an entity is a player.
Represents a non-player character in the in-game world.
final NpcAssistant npcAssistant
void message(String message)