Class BalanceModifier

All Implemented Interfaces:
KryoSerializable

public final class BalanceModifier extends Modifier
  • Field Details

    • MAX_LEVEL

      public static final int MAX_LEVEL
      See Also:
    • XP_FOR_LEVEL

      public static int[] XP_FOR_LEVEL
    • SPEED_BY_LEVEL

      public static float[] SPEED_BY_LEVEL
    • mode

      public BalanceModifier.Mode mode
  • Method Details

    • write

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

      public void read(Kryo kryo, Input input)
      Specified by:
      read in interface KryoSerializable
      Overrides:
      read in class Modifier
    • connectsToMiners

      public boolean connectsToMiners()
      Overrides:
      connectsToMiners in class Modifier
    • getLevel

      public int getLevel()
    • setLevel

      public void setLevel(int level)
    • getXpEvolveRequirement

      public int getXpEvolveRequirement()
    • hasCustomButton

      public boolean hasCustomButton()
      Overrides:
      hasCustomButton in class Modifier
    • isCustomButtonNeedMapPoint

      public boolean isCustomButtonNeedMapPoint()
      Overrides:
      isCustomButtonNeedMapPoint in class Modifier
    • fillModifierMenu

      public void fillModifierMenu(Group container, ObjectMap<String,Object> elements)
      Description copied from class: Modifier
      Add / update menu elements. Called each frame when the menu is visible. It is preferred to generate some kind of a menu's state hash and put it into the elements map. If hash has not changed since the last call, no change is required and this method can do nothing.
      Overrides:
      fillModifierMenu in class Modifier
      elements - is preserved between method calls so you don't have to add new actors. If this array is empty, the menu has been just opened and all actors should be re-created
    • customButtonAction

      public void customButtonAction(int mapX, int mapY)
      Overrides:
      customButtonAction in class Modifier
    • updateCustomButton

      public void updateCustomButton(ComplexButton complexButton, boolean isPointing)
      Overrides:
      updateCustomButton in class Modifier
    • getSpeed

      public float getSpeed()
      XP/s
    • update

      public void update(float deltaTime)
      Overrides:
      update in class Modifier
    • drawBatch

      public void drawBatch(Batch batch, float deltaTime, MapRenderingSystem.DrawMode drawMode)
      Overrides:
      drawBatch in class Modifier