Class Bat
java.lang.Object
fr.paris.saclay.sidescroller.drawables.Drawable
fr.paris.saclay.sidescroller.drawables.entities.Entity
fr.paris.saclay.sidescroller.drawables.entities.enemies.Bat
Bat enemy.
-
Field Summary
Fields inherited from class fr.paris.saclay.sidescroller.drawables.entities.Entity
animationMap, attackHitBox, attackHitboxSize, blockHitBox, blockHitboxSize, hitBox, hitboxSize, image, invincibilityTimer, isAttacking, isBlocking, isDead, isInvincible, isJumping, lifePoints, maximumInvincibility, maximumLifePoints, spriteCounter, spriteNumber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Bats fly up and down while moving forward.Methods inherited from class fr.paris.saclay.sidescroller.drawables.entities.Entity
chasePlayer, draw, drawHpBar, getAttackHitBox, getBlockHitBox, getHitBox, getLifePoints, getMaximumInvincibility, getMaximumLifePoints, isAttacking, isBlocking, isDead, isInvincible, isJumping, setAttacking, setAttackSprites, setBlockSprites, setDead, setEntityInvincible, setJumpSprites, setSprites, tookDamage, update, updateHitboxPosition, updateSprites
Methods inherited from class fr.paris.saclay.sidescroller.drawables.Drawable
getXPosition, updatePositionToCamera
-
Constructor Details
-
Bat
Creates a Bat instance passing the GamePanel reference and initial position of the entity.- Parameters:
gamePanel
- reference.xPosition
- initial position.
-
-
Method Details
-
uniqueMovement
protected void uniqueMovement()Bats fy up and down while moving forward.- Overrides:
uniqueMovement
in classEntity
-