edu.gatech.cs2335.lemmings.engine
Class DirtParticle
java.lang.Object
edu.gatech.cs2335.lemmings.physics.PhysicsObject
edu.gatech.cs2335.lemmings.engine.PrettySprite
edu.gatech.cs2335.lemmings.engine.Particle
edu.gatech.cs2335.lemmings.engine.DirtParticle
- All Implemented Interfaces:
- ICleanable
- public class DirtParticle
- extends Particle
Class Particle: When a lemming blows up, he makes particles. Well,
here they are. :)
Description from Andrew:
Adds specific dirt stuff
Dirt reaches peak in curve twice before it disapears
Revision History:
v1.0 (Apr. 11, 2004) - Created the DirtParticle class
- Version:
- Version 1.0, Apr. 11, 2004
- Author:
- Andrew Knight
|
Field Summary |
static int |
PARTICLESWHENDIG
Particles to create when death should occur |
|
Constructor Summary |
DirtParticle()
Creates a new Particle instance. |
DirtParticle(int i,
int j)
Creates a new Particle instance. |
|
Method Summary |
protected 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 |
PARTICLESWHENDIG
public static final int PARTICLESWHENDIG
- Particles to create when death should occur
- See Also:
- Constant Field Values
DirtParticle
public DirtParticle()
- Creates a new
Particle instance.
DirtParticle
public DirtParticle(int i,
int j)
- Creates a new
Particle instance.
- Parameters:
i - ij - j
canKillSelf
protected boolean canKillSelf()
- Should return true when the sprite is ready to kill self.
- Specified by:
canKillSelf in class Particle
- Returns:
- a
boolean value