Class TextParticleSpawner

java.lang.Object
rekit.logic.gameelements.particles.ParticleSpawner
rekit.logic.gameelements.particles.TextParticleSpawner
All Implemented Interfaces:
org.fuchss.configuration.Configurable

public final class TextParticleSpawner extends ParticleSpawner
A custom implementation of the ParticleSpawner that sets the settings for an internal TextParticle that it can ParticleSpawner.spawn(rekit.logic.IScene, rekit.primitives.geometry.Vec).
Author:
Angelo Aracri
  • Constructor Details

    • TextParticleSpawner

      public TextParticleSpawner()
      The constructor that sets the required settings
  • Method Details

    • setText

      public void setText(String text)
      Sets the text of the TextParticle.
      Parameters:
      text - the text
    • setSize

      public void setSize(int size)
      Sets the text size of the TextParticle.
      Parameters:
      size - the size