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:
com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable,ScheduledUpdater.Updatable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.prineside.tdi2.Modifier
Modifier.ConnectionSide, Modifier.Factory<T extends Modifier>, Modifier.ModifierSidePair -
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Modifier
connectedSides, id, moneySpentOn, PENALTY_SELL_PRICE, timeSinceBuilt, type, WIRES_TEXTURES_CONFIGFields inherited from class com.prineside.tdi2.Building
buildingTypeFields inherited from class com.prineside.tdi2.Registrable
S -
Method Summary
Modifier and TypeMethodDescriptionvoidfillModifierMenu(com.badlogic.gdx.scenes.scene2d.Group container, com.badlogic.gdx.utils.ObjectMap<String, Object> elements) Добавить / обновить элементы в меню Вызывается каждый кадр, когда видно меню elements сохраняется между вызовами метода, чтобы не создавать актеров заново.voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class com.prineside.tdi2.Modifier
cloneBuilding, customButtonAction, dispose, drawBatch, drawBatchAdditive, getSellDelay, getSellPrice, getTimeTillSellAvailable, hasCustomButton, isCustomButtonNeedMapPoint, isSellAvailable, loadFromJson, nearbyBuildingsChanged, removedFromMap, scheduledUpdatableGetId, scheduledUpdatableSetId, scheduledUpdate, setSideConnected, toJson, update, updateCustomButtonMethods inherited from class com.prineside.tdi2.Building
drawBase, drawHoveredRange, drawSelectedRange, fromJson, getTile, placedOnMap, setTileMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
coinsGained
public int coinsGained
-
-
Method Details
-
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) -
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) -
fillModifierMenu
public void fillModifierMenu(com.badlogic.gdx.scenes.scene2d.Group container, com.badlogic.gdx.utils.ObjectMap<String, Object> elements) Description copied from class:ModifierДобавить / обновить элементы в меню Вызывается каждый кадр, когда видно меню elements сохраняется между вызовами метода, чтобы не создавать актеров заново. Если он пустой - значит, вызвали первый раз и надо создать Можно не обновлять ничего, если состояние устраивает (можно хранить любые данные в elements, например хэш состояния или предыдущие значения)- Overrides:
fillModifierMenuin classModifier
-