Class SkelMonstaModel


public class SkelMonstaModel extends EnemyModel
SkelMonstaModel class is responsible for the skel monsta enemy logic
  • Constructor Details

    • SkelMonstaModel

      public SkelMonstaModel()
      Constructs a new SkelMonstaModel with default spawn position and state.
  • Method Details

    • update

      public void update(PlayerModel playerModel)
      Updates the state and behavior of the SkelMonsta enemy.
      Specified by:
      update in class EnemyModel
      Parameters:
      playerModel - the player model to interact with
    • reset

      public void reset()
      Resets the SkelMonsta to its initial state.
    • activate

      public void activate()
      Activates the SkelMonsta, setting it to active state.
    • deactivate

      public void deactivate()
      Deactivates the SkelMonsta, setting it to inactive state.
      Overrides:
      deactivate in class EntityModel
    • activateDespawn

      public void activateDespawn()
      Activates the despawning state for the SkelMonsta.
    • getEnemyType

      public Constants.EnemyConstants.EnemyType getEnemyType()
      Gets the type of the enemy.
      Specified by:
      getEnemyType in class EnemyModel
      Returns:
      the enemy type
    • isDespawning

      public boolean isDespawning()
      Checks if the SkelMonsta is in the despawning state.
      Returns:
      true if despawning, false otherwise
    • isSpawning

      public boolean isSpawning()
      Checks if the SkelMonsta is in the spawning state.
      Returns:
      true if spawning, false otherwise
    • isMoving

      public boolean isMoving()
      Checks if the SkelMonsta is moving.
      Returns:
      true if moving, false otherwise