Class BrootEnemy
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Enemy
com.prineside.tdi2.enemies.bosses.BrootEnemy
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Enemy
Enemy.EnemyReference, Enemy.Factory<T extends Enemy>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final float
Fields inherited from class com.prineside.tdi2.Enemy
angle, ATTACHED_PARTICLE_REGENERATION_BUFF, attachedParticles, bounty, buffFreezingLightningLengthBonus, buffFreezingPercent, buffFreezingPoisonDurationBonus, buffsAppliedByType, buffsByType, buffSnowballHits, caughtByCrushersSet, chasedByCrusher, disabled, drawAngle, drawPosition, drawScale, existsTime, gaveMiningSpeedForGauss, graphPath, HEALTH_BAR_BACKGROUND_COLOR, healthBarInvisible, healthBarScale, id, ignitionIncreasedLastFrame, ignitionProgress, ignoredByAutoWaveCall, ignoredOnGameOverNoEnemies, ignorePathfinding, invisible, killScore, loot, lowAimPriority, maxHealth, multishotTowerHits, notAffectsWaveKillCounter, otherEnemiesNearby, passedTiles, pathSearches, sideShiftIndex, spawnTile, stunDebuffStats, sumPassedTiles, thrownBackBy, totalCatchesByCrushers, type, UNREGISTERED_ID, wasAimedAtWithChainReactionBuff, wasStunnedByGauss, wave
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionboolean
float
getAbilityVulnerability
(AbilityType abilityType) float
float
float
float
getSize()
Enemy's radius in pxfloat
boolean
void
boolean
boolean
boolean
isInRage()
void
void
Remove the reference to the game state and mark this object as not registered.void
void
updateRageState
(float deltaTime) boolean
void
Methods inherited from class com.prineside.tdi2.Enemy
addLoot, applyDrawInterpolation, canBeAttackedBy, canBeBuffed, canHaveRandomSideShift, drawBatch, drawBatchAdditive, drawHealth, getBreakParticle, getBuffedDamageMultiplier, getBuffsByTypeOrNull, getBuffVulnerability, getColor, getCurrentTile, getEmojiTexture, getHealth, getHighlightTexture, getHitParticle, getKillExp, getKillScore, getPassedTilesDelta, getPosition, getSpeed, getTexture, getTowerDamageMultiplier, getUserData, giveDamage, giveDamageRaw, hasBuffsByType, initBuffsByTypeArray, isAir, isVulnerableTo, isVulnerableToSpecial, onPositionSetToPath, onPreDie, onSpawned, setHealth, setKillExp, setMaxHealth, setPosition, setPosition, setPositionToPath, setSpeed, setUserData, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered
-
Field Details
-
RAGE_DURATION
public static final float RAGE_DURATION- See Also:
-
RAGE_SPEED_MULT
public static final float RAGE_SPEED_MULT- See Also:
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classEnemy
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classEnemy
-
isBossRelated
public boolean isBossRelated()- Overrides:
isBossRelated
in classEnemy
-
isBossMainBodyPart
public boolean isBossMainBodyPart()- Overrides:
isBossMainBodyPart
in classEnemy
-
setUnregistered
public void setUnregistered()Description copied from class:Registrable
Remove the reference to the game state and mark this object as not registered.- Overrides:
setUnregistered
in classRegistrable
-
getAbilityVulnerability
- Overrides:
getAbilityVulnerability
in classEnemy
-
getSize
public float getSize()Description copied from class:Enemy
Enemy's radius in px -
getSquaredSize
public float getSquaredSize()- Overrides:
getSquaredSize
in classEnemy
-
startRage
public void startRage() -
getBuffedSpeed
public float getBuffedSpeed()- Overrides:
getBuffedSpeed
in classEnemy
-
wasInRage
public boolean wasInRage() -
isInRage
public boolean isInRage() -
getRageDuration
public float getRageDuration() -
updateRageState
public void updateRageState(float deltaTime) -
healthRestoredWithDamage
public void healthRestoredWithDamage() -
hasDrawPriority
public boolean hasDrawPriority()- Specified by:
hasDrawPriority
in classEnemy
-
getBaseDamage
public float getBaseDamage()- Overrides:
getBaseDamage
in classEnemy
-
dynamicPathfindingAllowed
public boolean dynamicPathfindingAllowed()- Overrides:
dynamicPathfindingAllowed
in classEnemy
-