Class StatManager

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.stats.StatManager

public class StatManager extends Component
Class to store Stats and listen for events to update them.
  • Constructor Details

    • StatManager

      public StatManager(Entity player)
  • Method Details

    • incrementStat

      public void incrementStat(String statName, String operation, int value)
      Handler for event triggering an update of the a stat
      Parameters:
      statName - : the string triggering the update
      value - : the new value of the stat
    • dispose

      public void dispose()
      Description copied from class: Component
      Called when the component is disposed. Dispose of any internal resources here.
      Overrides:
      dispose in class Component