Uses of Interface
com.prineside.tdi2.events.Event
Packages that use Event
Package
Description
-
Uses of Event in com.prineside.tdi2.events
Classes in com.prineside.tdi2.events with type parameters of type EventModifier and TypeClassDescriptionfinal classEventListeners<T extends Event>Contains a list of listeners for a specific event type.static final classEventListeners.Entry<T extends Event>Entry inside of an EventListeners, contains some meta data and flags.static final classEventListeners.Entry.EntryMetaData<T extends Event>Extra info about the entry.interfaceListens for a specific event type.Classes in com.prineside.tdi2.events that implement EventModifier and TypeClassDescriptionclassCan be stopped, can't be canceledclassCan't be canceled / stoppedclassCan be stopped, can't be canceledMethods in com.prineside.tdi2.events with type parameters of type EventModifier and TypeMethodDescription<T extends Event>
EventListeners<T>EventDispatcher.getListeners(Class<T> eventClass) Get listeners of some specific event type.<T extends Event>
voidEventDispatcher.queue(T event) Use Pools.obtain(EventType.class) to create an event object.<T extends Event>
TEventDispatcher.trigger(T event) Notify listeners about the event.Methods in com.prineside.tdi2.events that return types with arguments of type EventModifier and TypeMethodDescriptionObjectIntMap<Class<? extends Event>>EventDispatcher.getClassToId()EventDispatcher.getQueuedEvents() -
Uses of Event in com.prineside.tdi2.events.game
Classes in com.prineside.tdi2.events.game that implement EventModifier and TypeClassDescriptionfinal classfinal classfinal classfinal classfinal classfinal classBuff is being added to an enemy.final classfinal classStatisticsSystem.getBestReplay()final classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classEnemy has reached its target (in most of the cases, the Base).final classAn enemy is being spawned on the map.final classA 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)final classfinal classfinal classTriggered by GameStateSystemfinal classTriggered by GameStateSystemfinal classfinal classOne frame of the game state has been processed.final classfinal classfinal class(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.final classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classCalled 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.final classfinal classfinal class(B) Triggered by MinerSystem before any changes to the amount of resources.final classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classA projectile has been registered in the system (ProjectileSystem.register())final class(A) Triggered by BuffProcessor after the actual buff removalfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal class(A) Triggered by TowerSystem after the actual change in tower's XPfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classfinal classWave is the same as the current wave in WaveSystem.wave.final class -
Uses of Event in com.prineside.tdi2.events.global
Classes in com.prineside.tdi2.events.global that implement EventModifier and TypeClassDescriptionfinal classTriggered when the app exits.final classfinal classfinal classfinal classfinal classfinal classfinal classfinal class -
Uses of Event in com.prineside.tdi2.events.mapEditor
Classes in com.prineside.tdi2.events.mapEditor that implement EventModifier and TypeClassDescriptionfinal classfinal classfinal classfinal classfinal classfinal classS.mapEditor.getDraggingItem()final classS.mapEditor.getDraggingItem()final classfinal classfinal class