Class PlayerWeaponFactory
java.lang.Object
com.csse3200.game.entities.factories.PlayerWeaponFactory
Class to create weapons for the player to hold
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntitycreatePlayerWeapon(WeaponType weaponType, Entity player) Static function to create a new weapon entity
-
Method Details
-
createPlayerWeapon
Static function to create a new weapon entity- Parameters:
weaponType- - the type of weapon entity to be madeplayer- - player entity to track- Returns:
- A reference to the created weapon entity
-