Class TextParticleSpawner
java.lang.Object
rekit.logic.gameelements.particles.ParticleSpawner
rekit.logic.gameelements.particles.TextParticleSpawner
- All Implemented Interfaces:
org.fuchss.configuration.Configurable
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
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSize
(int size) Sets the text size of theTextParticle
.void
Sets the text of theTextParticle
.Methods inherited from class rekit.logic.gameelements.particles.ParticleSpawner
spawn
-
Constructor Details
-
TextParticleSpawner
public TextParticleSpawner()The constructor that sets the required settings
-
-
Method Details
-
setText
Sets the text of theTextParticle
.- Parameters:
text
- the text
-
setSize
public void setSize(int size) Sets the text size of theTextParticle
.- Parameters:
size
- the size
-