Class EncounterEvent

Direct Known Subclasses:
BossEncounterStartEvent, BuyUpgradeEvent, EncounterCompleteEvent, EncounterFailEvent, GainCoinEvent, KillEnemyEvent, NormalEncounterStartEvent

public abstract class EncounterEvent extends SessionEvent
  • Constructor Details

    • EncounterEvent

      public EncounterEvent(String userID, int sessionID, Instant timeStamp, String telemetryName, EncounterEnum encounterName, DifficultyEnum difficulty, int stageNumber)
      Constructor for the encounter telemetry event. Produces a telemetry event storing common data.
      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.
      telemetryName - name of the type of encounter event.
      encounterName - the name of the encounter a player is fighting.
      difficulty - the difficulty used for the player's session.
      stageNumber - the current stage player is attempting.
  • Method Details

    • getEncounter_name

      public EncounterEnum getEncounter_name()
      Gets the name for the encounter this event was generated on.
      Returns:
      the encounter's name.
    • getStage_number

      public int getStage_number()
      Gets the stage number the player is on when this event was created.
      Returns:
      the stage number stored in the event.
    • getDifficulty

      public DifficultyEnum getDifficulty()
      Gets the difficulty setting for the run that generated this event.
      Returns:
      the difficulty setting.