Uses of Package
com.prineside.tdi2.events.game
Package
Description
Variants of
Ability
Abilities are what the player can use manually during the game (such things as a Fireball or Nuke).-
ClassDescriptionEnemy has reached its target (in most of the cases, the Base).An enemy is being spawned on the map.
-
ClassDescriptionEnemy has reached its target (in most of the cases, the Base).A post-event of a damage taken, can not be cancelled Important note: final damage is already calculated, use DamageRecord.getFactDamage() (regular damage represents only the initial damage)
-
ClassDescriptionBuff is being added to an enemy.Enemy has reached its target (in most of the cases, the Base).An enemy is being spawned on the map.A post-event of a damage taken, can not be cancelled Important note: final damage is already calculated, use DamageRecord.getFactDamage() (regular damage represents only the initial damage)One frame of the game state has been processed.Called each time a miner mines an item, even if the item won't be added (in which case the event will be cancelled from the beginning) Listeners can call S.loot.getOrCreateSourceMinedItems() and modify the miner's inventory directly.(B) Triggered by MinerSystem before any changes to the amount of resources.A projectile has been registered in the system (ProjectileSystem.register())
-
ClassDescriptionBuff is being added to an enemy.Enemy has reached its target (in most of the cases, the Base).An enemy is being spawned on the map.One frame of the game state has been processed.(B) Triggered by EnemySystem.giveDamage() before the actual damage is calculated and any changes Some damage adjustments are made at this point (reduced damage from Abilities to bosses) and and the system has checked whether the tower can attack this enemy.Called each time a miner mines an item, even if the item won't be added (in which case the event will be cancelled from the beginning) Listeners can call S.loot.getOrCreateSourceMinedItems() and modify the miner's inventory directly.(B) Triggered by MinerSystem before any changes to the amount of resources.
-
ClassDescription(B) Triggered by MinerSystem before any changes to the amount of resources.
-
-
ClassDescriptionEnemy has reached its target (in most of the cases, the Base).A post-event of a damage taken, can not be cancelled Important note: final damage is already calculated, use DamageRecord.getFactDamage() (regular damage represents only the initial damage)One frame of the game state has been processed.(B) Triggered by MinerSystem before any changes to the amount of resources.
-
ClassDescriptionA post-event of a damage taken, can not be cancelled Important note: final damage is already calculated, use DamageRecord.getFactDamage() (regular damage represents only the initial damage)
-
-
-
ClassDescriptionAn enemy is being spawned on the map.(B) Triggered by EnemySystem.giveDamage() before the actual damage is calculated and any changes Some damage adjustments are made at this point (reduced damage from Abilities to bosses) and and the system has checked whether the tower can attack this enemy.