Class BonusSystem.BonusStage

java.lang.Object
com.prineside.tdi2.systems.BonusSystem.BonusStage
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
Enclosing class:
BonusSystem

public static final class BonusSystem.BonusStage extends Object implements com.esotericsoftware.kryo.KryoSerializable
  • Constructor Details

    • BonusStage

      public BonusStage(int number, int requirement)
  • Method Details

    • write

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

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • getAvailableOnFrame

      public int getAvailableOnFrame()
      Get update number the bonus has became available or re-rolled
      Returns:
      -1 if not yet available
    • setAvailableOnFrame

      public void setAvailableOnFrame(int availableOnFrame)
    • getBonusesToChooseFrom

      public com.badlogic.gdx.utils.Array<GameplayMod> getBonusesToChooseFrom()
    • getProbableBonuses

      public com.badlogic.gdx.utils.Array<BonusProbability> getProbableBonuses()
    • getNumber

      public int getNumber()
    • canSelectBonus

      public boolean canSelectBonus()
    • isBonusSelected

      public boolean isBonusSelected()
    • getSelectedBonusIdx

      public int getSelectedBonusIdx()
      Returns:
      -1 if not selected yet
    • getPointsRequirement

      public int getPointsRequirement()
    • getPoints

      public int getPoints()