Class PotionFactory
java.lang.Object
com.deco2800.game.entities.factories.PotionFactory
Factory to create a potion entity.
 
Each Potion entity type has a creation method returning the corresponding potion.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic EntityCreates the base potion which can be modified to other types of potion.static Entitycreates a defence potion.static EntityCreates a health potion which gives the player health all at oncestatic EntityCreate a health regen potion which slows gives the player health every few framesstatic EntityCreates speed potion which increases the players movement speed by a set amountstatic EntityCreates a stamina potion which gives the player health all at oncestatic EntityCreates health potion without rendering Component.static EntityCreates health regen potion without rendering Component.static EntityCreates speed potion without rendering Component. 
- 
Constructor Details
- 
PotionFactory
public PotionFactory() 
 - 
 - 
Method Details
- 
createBasePotion
Creates the base potion which can be modified to other types of potion. This potion on its own has no effects- Returns:
 - base potion
 
 - 
createSpeedPotion
Creates speed potion which increases the players movement speed by a set amount- Returns:
 - speed potion
 
 - 
createHealthPotion
Creates a health potion which gives the player health all at once- Returns:
 - health potion
 
 - 
createStaminaPotion
Creates a stamina potion which gives the player health all at once- Returns:
 - stamina potion
 
 - 
createDefencePotion
creates a defence potion. This is scheduled for removal as it is too similar to other potions and because too many potions already exist in the game- Returns:
 - defence potion
 
 - 
createHealthRegenPotion
Create a health regen potion which slows gives the player health every few frames- Returns:
 - health regen potion
 
 - 
createTestSpeedPotion
Creates speed potion without rendering Component.- Returns:
 - speed potion for testing purposes
 
 - 
createTestHealthPotion
Creates health potion without rendering Component.- Returns:
 - health potion for testing purposes
 
 - 
createTestHealthRegenPotion
Creates health regen potion without rendering Component.- Returns:
 - health regen potion for testing purposes
 
 
 -