edu.gatech.cs2335.lemmings.engine
Class Particle
java.lang.Object
edu.gatech.cs2335.lemmings.physics.PhysicsObject
edu.gatech.cs2335.lemmings.engine.PrettySprite
edu.gatech.cs2335.lemmings.engine.Particle
- All Implemented Interfaces:
- ICleanable
- Direct Known Subclasses:
- BloodParticle, BoneParticle, DirtParticle, FlameParticle, WaterParticle
- public abstract class Particle
- extends PrettySprite
Class Particle: When a lemming blows up, he makes particles. Well,
here they are. :)
Description from Jose:
The particle class, used for ! particle effects !
Nothing special to do here, the Physics Engine will handle the
actual effects. The single function is used to test whether or
not the particle should be killed.
Revision History:
v2.0 (2004 - 4 - 20) - Made abstract
v1.0 (Apr. 11, 2004) - Created the Particle class
- Version:
- Version 1.0, Apr. 11, 2004
- Author:
- Jose Caban
|
Constructor Summary |
Particle(java.lang.String s)
Creates a new Particle instance. |
|
Method Summary |
protected abstract boolean |
canKillSelf()
Should return true when the sprite is ready to kill self. |
| Methods inherited from class edu.gatech.cs2335.lemmings.physics.PhysicsObject |
accelerate, getGravityUpdates, getPosition, getVelocity, isFalling, setGravityUpdates, setPosition, setPosition, setVelocity, toString, updatePosition, updatePosition, updateVelocity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Particle
public Particle(java.lang.String s)
- Creates a new
Particle instance.
- Parameters:
s - s
canKillSelf
protected abstract boolean canKillSelf()
- Should return true when the sprite is ready to kill self.
- Specified by:
canKillSelf in class PrettySprite
- Returns:
- a
boolean value