Package wizardquest.telemetry
Class BuyUpgradeEvent
java.lang.Object
wizardquest.telemetry.TelemetryEvent
wizardquest.telemetry.SessionEvent
wizardquest.telemetry.EncounterEvent
wizardquest.telemetry.BuyUpgradeEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBuyUpgradeEvent(String userID, int sessionID, Instant timeStamp, EncounterEnum encounterName, DifficultyEnum difficulty, int stageNumber, UpgradeEnum upgradeBought, int coinsSpent) Constructor for BuyUpgradeEvent. -
Method Summary
Modifier and TypeMethodDescriptionintGets the stored number of coins spent.Gets the stored upgrade bought.Methods inherited from class wizardquest.telemetry.EncounterEvent
getDifficulty, getEncounter_name, getStage_numberMethods inherited from class wizardquest.telemetry.SessionEvent
getSessionIDMethods inherited from class wizardquest.telemetry.TelemetryEvent
getEvent, getTimestamp, getUserID
-
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
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.
-