ParticleLayer<T extends Particle> class
abstract
A "Layer" of particles. Represents a fixed number of particles on the screen
Remove a layer by marking it dead (return true in isDead)
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDead → bool
-
Has this layer died yet? True will automatically be pruned
no setter
- needsAfter → bool
-
no setter
- needsBefore → bool
-
To optimize I'll provide these options
Not all system need before/after and per-particle paint
no setter
- needsParticlePaint → bool
-
no setter
-
particles
→ List<
T> -
Particles we are going to render
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time ↔ double
-
Current runtime of this layer
getter/setter pair
Methods
-
after(
Canvas canvas, Size size) → void - After we draw this layer
-
before(
Canvas canvas, Size size) → void - Before we draw this layer
-
drawParticle(
Canvas canvs, Size size, T particle) → void - During
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
step(
double d) → void - Track the time a Layer has been active
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited