Class PlayerItemSpriteManager

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.player.PlayerItemSpriteManager

public class PlayerItemSpriteManager extends Component
A class that handles updating the player sprite to display what the player is currently holding in their hand.
  • Constructor Details

    • PlayerItemSpriteManager

      public PlayerItemSpriteManager()
  • Method Details

    • onUpdateInventory

      public void onUpdateInventory()
      Updates the player sprite to match what is currently being held in the player's InventoryComponent
    • create

      public void create()
      Add the event listener to the player item sprite manager
      Overrides:
      create in class Component