Class BuyUpgradeEvent


public class BuyUpgradeEvent extends EncounterEvent
  • Constructor Details

    • BuyUpgradeEvent

      public BuyUpgradeEvent(String userID, int sessionID, Instant timeStamp, EncounterEnum encounterName, DifficultyEnum difficulty, int stageNumber, UpgradeEnum upgradeBought, int coinsSpent)
      Constructor for BuyUpgradeEvent.
      Parameters:
      userID - the ID of the user who is playing the game when the event is constructed.
      sessionID - the ID of the session the user is currently playing. See TelemetryListenerInterface for information about sessions.
      timeStamp - the time the event was constructed.
      encounterName - the name of the encounter a player is fighting.
      difficulty - the difficulty used for the player's session.
      stageNumber - the stage player has completed.
      upgradeBought - the upgrade a player has purchased.
      coinsSpent - the number of coins spent by the player on an upgrade.
  • Method Details

    • getUpgrade_bought

      public UpgradeEnum getUpgrade_bought()
      Gets the stored upgrade bought.
      Returns:
      upgrade a player has purchased.
    • getCoins_spent

      public int getCoins_spent()
      Gets the stored number of coins spent.
      Returns:
      coins spent on an upgrade.