Class GainCoinEvent


public class GainCoinEvent extends EncounterEvent
  • Constructor Details

    • GainCoinEvent

      public GainCoinEvent(String userID, int sessionID, Instant timeStamp, EncounterEnum encounterName, DifficultyEnum difficulty, int stageNumber, int coinsGained)
      Constructor for GainCoinEvent.
      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 is collecting coins on.
      coinsGained - number of coins gained by the player.
  • Method Details

    • getCoins_gained

      public int getCoins_gained()
      Gets the stored number of coins gained.
      Returns:
      number of coins gained.