Package com.prineside.tdi2.modifiers
Class BountyModifier
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.Building
com.prineside.tdi2.Modifier
com.prineside.tdi2.modifiers.BountyModifier
- All Implemented Interfaces:
KryoSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Modifier
Modifier.ConnectionSide, Modifier.Factory<T extends Modifier>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
boolean
int
Fields inherited from class com.prineside.tdi2.Modifier
id, moneySpentOn, PENALTY_SELL_PRICE, timeSinceBuilt, type, visuallyConnectedSides, WIRES_TEXTURES_CONFIG
Fields inherited from class com.prineside.tdi2.Building
buildingType
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
drawBatch
(Batch batch, float deltaTime, MapRenderingSystem.DrawMode drawMode) void
fillModifierMenu
(Group container, ObjectMap<String, Object> elements) Add / update menu elements.void
void
void
Methods inherited from class com.prineside.tdi2.Modifier
cloneBuilding, connectsToTowers, customButtonAction, dispose, drawBatchAdditive, getSellDelay, getSellPrice, getTimeTillSellAvailable, getWalkCost, hasCustomButton, isCustomButtonNeedMapPoint, isSellAvailable, loadFromJson, sameAs, setSideConnected, toJson, update, updateCache, updateCustomButton
Methods inherited from class com.prineside.tdi2.Building
drawBase, drawHoveredRange, drawSelectedRange, fromJson, getTile, placedOnMap, setTile
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
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
- Specified by:
write
in interfaceKryoSerializable
- Overrides:
write
in classModifier
-
read
- Specified by:
read
in interfaceKryoSerializable
- Overrides:
read
in classModifier
-
connectsToMiners
public boolean connectsToMiners()- Overrides:
connectsToMiners
in classModifier
-
drawBatch
-
removedFromMap
public void removedFromMap()- Overrides:
removedFromMap
in classBuilding
-
fillModifierMenu
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 classModifier
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
-