Package fr.olympus.prometheus.evolution
Interface EvolutionCondition
public interface EvolutionCondition
Interface representing a condition for evolution.
-
Method Summary
Modifier and TypeMethodDescription<T extends EvolutionEntity>
booleancanEvolve(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
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.
-