Package com.prineside.tdi2.systems
Class ParticleSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.ParticleSystem
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,com.esotericsoftware.kryo.KryoSerializable
-
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCoinParticle(float x, float y, int amount) voidaddDamageParticle(float x, float y, int amount, float efficiency) voidaddEnemyHitParticle(Tower tower, Enemy enemy, float damage, Projectile projectile) voidaddFlashParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) voidaddFlashParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation, com.badlogic.gdx.graphics.Color color) booleanaddOpaqueParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect) voidaddOrbParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float size, int x1, int y1, int x2, int y2) booleanaddParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, boolean canSkip) voidaddParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, LimitedParticleType limitedParticleType, float x, float y) voidaddShatterParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float size, float rotation, float scale) voidaddShatterParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float size, float rotation, float scale, com.badlogic.gdx.graphics.Color color, com.badlogic.gdx.math.Interpolation timeFunction, boolean overParticles) voidaddXpOrbParticle(float xpAmount, int x1, int y1, int x2, int y2) booleanvoiddispose()Releases all resources of this object.voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float realDetaTime, float inGameDeltaTime) static voidfreeParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect) voidsetup()Произвести начальную настройку системы.booleanMethods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, profileUpdate, updateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write
-
Constructor Details
-
ParticleSystem
public ParticleSystem()
-
-
Method Details
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameStatein classGameSystem
-
addFlashParticle
public void addFlashParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) -
addFlashParticle
public void addFlashParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation, com.badlogic.gdx.graphics.Color color) -
addShatterParticle
public void addShatterParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float size, float rotation, float scale) -
addShatterParticle
public void addShatterParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float size, float rotation, float scale, com.badlogic.gdx.graphics.Color color, com.badlogic.gdx.math.Interpolation timeFunction, boolean overParticles) -
addXpOrbParticle
public void addXpOrbParticle(float xpAmount, int x1, int y1, int x2, int y2) -
addOrbParticle
public void addOrbParticle(com.badlogic.gdx.graphics.g2d.TextureRegion region, float size, int x1, int y1, int x2, int y2) -
addCoinParticle
public void addCoinParticle(float x, float y, int amount) -
addEnemyHitParticle
-
addDamageParticle
public void addDamageParticle(float x, float y, int amount, float efficiency) -
setup
public void setup()Description copied from class:GameSystemПроизвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.- Overrides:
setupin classGameSystem
-
getSystemName
- Specified by:
getSystemNamein classGameSystem
-
freeParticle
public static void freeParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect) -
addParticle
public void addParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, LimitedParticleType limitedParticleType, float x, float y) -
willParticleBeSkipped
public boolean willParticleBeSkipped() -
addParticle
public boolean addParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect, boolean canSkip) - Returns:
- true, если партикл добавлен (не скипнут)
-
addOpaqueParticle
public boolean addOpaqueParticle(com.badlogic.gdx.graphics.g2d.ParticleEffect particleEffect) -
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float realDetaTime, float inGameDeltaTime) -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Overrides:
disposein classGameSystem
-