Class ParticleSpawner

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

@SetterInfo(res="", set=false) public class ParticleSpawner extends Object implements org.fuchss.configuration.Configurable
This class will be used to manage the spawning of particles.
You have to set the parameters of the particles by the public Fields of your ParticleSpawner Object
  • Field Details

  • Constructor Details

    • ParticleSpawner

      public ParticleSpawner(Particle prototype)
      Create a new ParticleSpawner by prototype.
      Parameters:
      prototype - the prototype
    • ParticleSpawner

      public ParticleSpawner()
      Create a new particle spawner with its default values.
  • Method Details

    • spawn

      public void spawn(IScene scene, Vec pos)
      Spawn particles in a IScene at a position.
      Parameters:
      scene - the scene
      pos - the position