Class DreamMistPotion
java.lang.Object
gameelement.potion.BasePotion
gameelement.potion.DreamMistPotion
- All Implemented Interfaces:
MergeAble
Potion made from Star Dust and Dew Drop.
-
Field Summary
Fields inherited from class BasePotion
imagePath, potionName, potionPower, potionRecipe, potionType -
Constructor Summary
ConstructorsConstructorDescriptionCreates a Dream Mist potion with its recipe, type, and power. -
Method Summary
Modifier and TypeMethodDescriptionbooleanpotionMatchesRecipe(List<BaseElement> elements) Checks whether the selected elements can merge into Dream Mist.Methods inherited from class BasePotion
getImagePath, getPotionName, getPotionPower, getPotionRecipe, getPotionType, setImagePath, setPotionName, setPotionPower, setPotionRecipe, setPotionType
-
Constructor Details
-
DreamMistPotion
public DreamMistPotion()Creates a Dream Mist potion with its recipe, type, and power.
-
-
Method Details
-
potionMatchesRecipe
Checks whether the selected elements can merge into Dream Mist.- Specified by:
potionMatchesRecipein interfaceMergeAble- Specified by:
potionMatchesRecipein classBasePotion- Parameters:
elements- selected elements from the merge station- Returns:
- true when Star Dust and Dew Drop are selected
-