Class BountyModifier

All Implemented Interfaces:
KryoSerializable

public final class BountyModifier extends Modifier
  • Field Details

    • ABILITY_BOOST_MULTIPLIER

      public static final float ABILITY_BOOST_MULTIPLIER
      See Also:
    • boostedByAbility

      public boolean boostedByAbility
    • coinsGained

      public int coinsGained
  • 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
    • drawBatch

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

      public void removedFromMap()
      Overrides:
      removedFromMap in class Building
    • 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