Class ItemFactory
java.lang.Object
com.csse3200.game.entities.factories.ItemFactory
Factory to create item entities with predefined components.
-
Method Details
-
createGrenade
Creates a grenade entity. Damages enemies in a short radius.- Returns:
- a grenade item entity
-
createCoffee
Creates a coffee entity. Place on a "plant" to give it a temporary attack speed bonus.- Returns:
- a coffee item entity
-
createBuff
Creates a buff entity. Place on a "plant" to heal it and double it's max health.- Returns:
- a buff item entity
-
createEmp
Creates an EMP entity. Stuns enemies in a short radius.- Returns:
- an emp item entity
-
createNuke
Creates a nuke entity. Place anywhere on screen to destroy all entities, friend and foe.- Returns:
- a nuke item entity
-