Package view.entities

Class SkelMonstaView

java.lang.Object
view.entities.EnemyView
view.entities.SkelMonstaView

public class SkelMonstaView extends EnemyView
The SkelMonstaView class represents the view for the SkelMonstaModel. It handles drawing and updating the SkelMonsta's animation and state.
  • Constructor Details

    • SkelMonstaView

      public SkelMonstaView(EnemyModel enemyModel)
      Constructs a SkelMonstaView with the specified EnemyModel.
      Parameters:
      enemyModel - the model for the SkelMonsta enemy entity
  • Method Details

    • draw

      public void draw(Graphics g)
      Draws the SkelMonsta on the screen.
      Parameters:
      g - the Graphics object to draw with
    • update

      public void update()
      Updates the state and animation of the SkelMonsta.
      Overrides:
      update in class EnemyView
    • updateAnimationTick

      protected void updateAnimationTick()
      Updates the animation tick and index based on the animation speed.
      Overrides:
      updateAnimationTick in class EnemyView
    • reset

      protected void reset()
      Resets the SkelMonsta's animation and state variables.