import QueenAnt from 'WTF-Adventure/WTF-Adventure/server/data/combat/queenant.js'
QueenAnt
Extends:
This is where bosses start to get a bit more complex. The queen ant will do an AoE attack after staggering for five seconds, indicating to the players. If players are caught up in this, the terror explosion sprite is drawn above them.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
aoeTimeout: * |
|
public |
character: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
lastHit: * |
|
public |
|
|
public |
|
|
public |
minions: *[] |
Method Summary
Public Methods | ||
public |
begin(attacker: *) |
|
public |
|
|
public |
canCastAoE(): * |
|
public |
canSpawn(): * |
|
public |
doAoE() The reason this function does not use its superclass representation is because of the setTimeout function which does not allow us to call super(). |
|
public |
|
|
public |
getRandomTarget(): * |
|
public |
hasMinions(): * |
|
public |
hit(attacker: *, target: *, hitInfo: *) |
|
public |
isLast(): * |
|
public |
pushCountdown(count: *) |
|
public |
pushFreeze(state: *) |
|
public |
resetAoE() |
|
public |
|
Inherited Summary
From class Combat | ||
public |
attackLoop: * |
|
public |
attackers: {} |
|
public |
|
|
public |
character: * |
|
public |
checkLoop: * |
|
public |
cleanTimeout: * |
|
public |
|
|
public |
followLoop: * |
|
public |
|
|
public |
lastAction: * |
|
public |
|
|
public |
lastHit: * |
|
public |
queue: * |
|
public |
|
|
public |
|
|
public |
world: * |
|
public |
addAttacker(character: *) |
|
public |
attack(target: *) |
|
public |
attackCount(count: *, target: *) |
|
public |
begin(attacker: *) |
|
public |
canAttackAoE(target: *): * |
|
public |
colliding(x: *, y: *): * |
|
public |
dealAoE(radius: *, hasTerror: *) |
|
public |
end() |
|
public |
follow(character: *, target: *) |
|
public |
forEachAttacker(callback: *) |
|
public |
|
|
public |
forget() |
|
public |
getClosestAttacker(): * |
|
public |
getNewPosition(): * |
|
public |
getTime(): * |
|
public |
hasAttacker(character: *): * |
|
public |
hit(character: *, target: *, hitInfo: *) |
|
public |
inProximity(): * |
|
public |
isAttacked(): * |
|
public |
isMob(): * |
|
public |
isPlayer(): * |
|
public |
isRetaliating(): * |
|
public |
isTargetMob(): * |
|
public |
move(character: *, x: *, y: *) |
|
public |
onForget(callback: *) |
|
public |
onSameTile(): * |
|
public |
|
|
public |
|
|
public |
removeAttacker(character: *) |
|
public |
|
|
public |
|
|
public |
setWorld(world: *) |
|
public |
start() |
|
public |
stop() |
|
public |
targetOutOfBounds(): * |
Public Constructors
Public Methods
public begin(attacker: *) source
Override:
Combat#beginParams:
Name | Type | Attribute | Description |
attacker | * |
public beginMinionAttack() source
public doAoE() source
The reason this function does not use its superclass representation is because of the setTimeout function which does not allow us to call super().
public getMinions() source
public hit(attacker: *, target: *, hitInfo: *) source
Override:
Combat#hitParams:
Name | Type | Attribute | Description |
attacker | * | ||
target | * | ||
hitInfo | * |
public pushCountdown(count: *) source
Params:
Name | Type | Attribute | Description |
count | * |
public pushFreeze(state: *) source
Params:
Name | Type | Attribute | Description |
state | * |