Package com.prineside.tdi2.systems
Class DamageSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.DamageSystem
- All Implemented Interfaces:
Disposable,KryoSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidActually applies the damage given to the enemiesvoidvoiddrawDebugDpsChart(Batch batch) doublevoidqueueDamage(DamageRecord record) voidqueueEnemyKill(DamageRecord lastDamage) voidvoidsetTowersMaxDps(double mdps) voidsetup()Performs the initial configuration of the system.voidupdate(float deltaTime) voidMethods inherited from class com.prineside.tdi2.GameSystem
dispose, getFastStateHash, postSetup, postStateRestore, profileUpdateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, setRegistered, setUnregistered
-
Field Details
-
DAMAGE_DRAIN_MAX_ITERATIONS
public static final int DAMAGE_DRAIN_MAX_ITERATIONS- See Also:
-
-
Constructor Details
-
DamageSystem
public DamageSystem()
-
-
Method Details
-
write
- Specified by:
writein interfaceKryoSerializable- Overrides:
writein classRegistrable
-
read
- Specified by:
readin interfaceKryoSerializable- Overrides:
readin classRegistrable
-
obtainRecord
-
setup
public void setup()Description copied from class:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
setupin classGameSystem
-
queueDamage
-
getTowersMaxDps
public double getTowersMaxDps()- Returns:
- MDPS
-
setTowersMaxDps
public void setTowersMaxDps(double mdps) -
queueEnemyKill
-
drainDamageAndKillQueue
public void drainDamageAndKillQueue()Actually applies the damage given to the enemies -
drainDamageAndKillQueueTillEmpty
public void drainDamageAndKillQueueTillEmpty() -
update
public void update(float deltaTime) - Overrides:
updatein classGameSystem
-
drawDebugDpsChart
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameStatein classGameSystem
-
getSystemName
- Specified by:
getSystemNamein classGameSystem
-