Package wizardquest.telemetry
Class EncounterEvent
java.lang.Object
wizardquest.telemetry.TelemetryEvent
wizardquest.telemetry.SessionEvent
wizardquest.telemetry.EncounterEvent
- Direct Known Subclasses:
BossEncounterStartEvent,BuyUpgradeEvent,EncounterCompleteEvent,EncounterFailEvent,GainCoinEvent,KillEnemyEvent,NormalEncounterStartEvent
-
Constructor Summary
ConstructorsConstructorDescriptionEncounterEvent(String userID, int sessionID, Instant timeStamp, String telemetryName, EncounterEnum encounterName, DifficultyEnum difficulty, int stageNumber) Constructor for the encounter telemetry event. -
Method Summary
Modifier and TypeMethodDescriptionGets the difficulty setting for the run that generated this event.Gets the name for the encounter this event was generated on.intGets the stage number the player is on when this event was created.Methods inherited from class wizardquest.telemetry.SessionEvent
getSessionIDMethods inherited from class wizardquest.telemetry.TelemetryEvent
getEvent, getTimestamp, getUserID
-
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
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
Gets the difficulty setting for the run that generated this event.- Returns:
- the difficulty setting.
-