Class MapPrestigeConfig

java.lang.Object
com.prineside.tdi2.MapPrestigeConfig
All Implemented Interfaces:
KryoSerializable

public class MapPrestigeConfig extends Object implements KryoSerializable
  • Field Details

    • BASE_BONUS

      public static final int BASE_BONUS
      See Also:
    • MAX_DIFFICULTY_BONUS

      public static final int MAX_DIFFICULTY_BONUS
      See Also:
    • NO_ABILITIES_BONUS

      public static final int NO_ABILITIES_BONUS
      See Also:
    • WALKABLE_PLATFORMS_BONUS

      public static final int WALKABLE_PLATFORMS_BONUS
      See Also:
    • NO_BOUNTY_MOD_BONUS

      public static final int NO_BOUNTY_MOD_BONUS
      See Also:
    • NO_MINERS_BONUS

      public static final int NO_MINERS_BONUS
      See Also:
    • NO_RESEARCH_BONUS

      public static final int NO_RESEARCH_BONUS
      See Also:
    • userMapId

      public String userMapId
    • mapPrice

      public double mapPrice
    • averageDifficulty

      public int averageDifficulty
    • noAbilities

      public boolean noAbilities
    • noResearch

      public boolean noResearch
    • walkablePlatforms

      public boolean walkablePlatforms
    • noBounty

      public boolean noBounty
    • noMiners

      public boolean noMiners
    • score

      public long score
  • Constructor Details

    • MapPrestigeConfig

      public MapPrestigeConfig(String userMapId, double mapPrice, int averageDifficulty, boolean noAbilities, boolean noResearch, boolean walkablePlatforms, boolean noBounty, boolean noMiners, long score)
  • Method Details

    • write

      public void write(Kryo kryo, Output output)
      Specified by:
      write in interface KryoSerializable
    • read

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
    • getCrownsCount

      public int getCrownsCount()
    • getScoreMultiplier

      public double getScoreMultiplier()
    • getDifficultyBonus

      public int getDifficultyBonus()
    • getTotalBonus

      public int getTotalBonus()
    • getFinalPrestigeTokens

      public int getFinalPrestigeTokens()
    • getMaxPrestigeScore

      public int getMaxPrestigeScore()
    • getMaxPrestigeScore

      public static int getMaxPrestigeScore(int averageDifficulty, boolean researchesDisabled)
    • describe

      public String describe()
    • toJson

      public void toJson(Json json)
    • fromJson

      public static MapPrestigeConfig fromJson(JsonValue jsonValue)