Package view.entities.enemies
Class DrunkView
La classe
DrunkView estende EnemyView e rappresenta la visualizzazione per l'entità nemica "Drunk".
Gestisce l'animazione e la visualizzazione del nemico Drunk nel gioco.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intQuante colonne sono presenti nelle spriteprivate static final intQuante righe sono presenti nelle spriteFields inherited from class view.entities.enemies.EnemyView
aniIndex, animations, aniSpeed, aniTick, enemy, exploding, flipW, flipX, xDrawOffset, yDrawOffset -
Constructor Summary
ConstructorsConstructorDescriptionDrunkView(DrunkModel enemy) Costruisce una nuova istanza diDrunkViewassociata al modello specificato. -
Method Summary
Methods inherited from class view.entities.enemies.EnemyView
flipW, flipX, getEnemy, getSpriteAmount, render, update, updateAnimationTick
-
Field Details
-
ROW_INDEX
private static final int ROW_INDEXQuante righe sono presenti nelle sprite- See Also:
-
COL_INDEX
private static final int COL_INDEXQuante colonne sono presenti nelle sprite- See Also:
-
-
Constructor Details
-
DrunkView
Costruisce una nuova istanza diDrunkViewassociata al modello specificato.- Parameters:
enemy- Il modelloDrunkModelassociato a questa visualizzazione.
-