Klasse PlayerStats

java.lang.Object
de.delinkedde.mobarenareborn.stats.PlayerStats

public final class PlayerStats extends Object
A player's mutable statistics for one arena: kills, rounds played and the best wave reached.
  • Konstruktordetails

    • PlayerStats

      public PlayerStats(@NotNull @NotNull String arena, long kills, int rounds, int bestWave)
      Parameter:
      arena - the arena identifier
      kills - the total arena-mob kills
      rounds - the rounds played
      bestWave - the best wave reached
  • Methodendetails

    • arena

      @NotNull public @NotNull String arena()
      Gibt zurück:
      the arena identifier
    • kills

      public long kills()
      Gibt zurück:
      the total arena-mob kills
    • rounds

      public int rounds()
      Gibt zurück:
      the rounds played
    • bestWave

      public int bestWave()
      Gibt zurück:
      the best wave reached
    • addKill

      public void addKill()
      Increments the kill counter.
    • recordRound

      public void recordRound(int waveReached)
      Records a finished round and raises the best wave when surpassed.
      Parameter:
      waveReached - the wave the round ended on