Class FlyingItemsOverlay.Paper

java.lang.Object
com.badlogic.gdx.graphics.g2d.ParticleEffect
com.prineside.tdi2.ui.components.FlyingItemsOverlay.Paper
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, PooledCustomEffect
Enclosing class:
FlyingItemsOverlay

public static class FlyingItemsOverlay.Paper extends com.badlogic.gdx.graphics.g2d.ParticleEffect implements PooledCustomEffect
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.badlogic.gdx.utils.Pool<FlyingItemsOverlay.Paper>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    draw(com.badlogic.gdx.graphics.g2d.Batch spriteBatch)
     
    void
    draw(com.badlogic.gdx.graphics.g2d.Batch spriteBatch, float delta)
     
    void
     
    boolean
     
    void
    Resets the effect so it can be started again like a new effect.
    void
    setPosition(float x, float y)
     
    void
    setup(int paperCount)
     
    void
     
    void
    update(float delta)
     

    Methods inherited from class com.badlogic.gdx.graphics.g2d.ParticleEffect

    dispose, findEmitter, flipY, getBoundingBox, getEmitters, load, load, load, loadEmitterImages, loadEmitterImages, loadEmitterImages, loadEmitters, preAllocateParticles, reset, save, scaleEffect, scaleEffect, scaleEffect, setDuration, setEmittersCleanUpBlendFunction, setFlip

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Paper

      public Paper()
  • Method Details

    • setup

      public void setup(int paperCount)
    • start

      public void start()
      Overrides:
      start in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • reset

      public void reset()
      Description copied from class: com.badlogic.gdx.graphics.g2d.ParticleEffect
      Resets the effect so it can be started again like a new effect. Any changes to scale are reverted. See ParticleEffect.reset(boolean).
      Overrides:
      reset in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • update

      public void update(float delta)
      Overrides:
      update in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch spriteBatch)
      Overrides:
      draw in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • draw

      public void draw(com.badlogic.gdx.graphics.g2d.Batch spriteBatch, float delta)
      Overrides:
      draw in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • allowCompletion

      public void allowCompletion()
      Overrides:
      allowCompletion in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • isComplete

      public boolean isComplete()
      Overrides:
      isComplete in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • setPosition

      public void setPosition(float x, float y)
      Overrides:
      setPosition in class com.badlogic.gdx.graphics.g2d.ParticleEffect
    • free

      public void free()
      Specified by:
      free in interface PooledCustomEffect