Interface EvolutionCondition


public interface EvolutionCondition
Interface representing a condition for evolution.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends EvolutionEntity>
    boolean
    canEvolve(T entity)
    Checks if the given entity can evolve based on this condition.
    Gets the unique identifier of the entity associated with this evolution condition.
  • Method Details

    • canEvolve

      <T extends EvolutionEntity> boolean canEvolve(T entity)
      Checks if the given entity can evolve based on this condition.
      Type Parameters:
      T - The type of the entity, which must extend EvolutionEntity.
      Parameters:
      entity - The entity to check for evolution.
      Returns:
      true if the entity can evolve, false otherwise.
    • getEntityId

      String getEntityId()
      Gets the unique identifier of the entity associated with this evolution condition.
      Returns:
      A string representing the unique identifier of the entity associated with this evolution condition.