edu.gatech.cs2335.lemmings.engine
Class BloodParticle

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.physics.PhysicsObject
      extended byedu.gatech.cs2335.lemmings.engine.PrettySprite
          extended byedu.gatech.cs2335.lemmings.engine.Particle
              extended byedu.gatech.cs2335.lemmings.engine.BloodParticle
All Implemented Interfaces:
ICleanable

public class BloodParticle
extends Particle

Class Particle: When a lemming blows up, he makes particles. Well, here they are. :) Description from Jose: Adds specific blood stuff Blood shouldn't bounce, rather it should hit the wall and die

 Revision History:
     v1.0 (Apr. 11, 2004) - Created the BloodParticle class
 

Version:
Version 1.0, Apr. 11, 2004
Author:
Jose Caban

Field Summary
static int PARTICLESWHENDIE
          Particles to create when death should occur
 
Constructor Summary
BloodParticle()
          Creates a new Particle instance.
 
Method Summary
protected  boolean canKillSelf()
          Should return true when the sprite is ready to kill self.
 boolean getCanDie()
          Should return canDie
 void setCanDie(boolean a)
          Should return canDie
 
Methods inherited from class edu.gatech.cs2335.lemmings.engine.PrettySprite
cleanUp, getAnimation, getLevel, setAnimation, setLevel, updateSprite
 
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
 

Field Detail

PARTICLESWHENDIE

public static final int PARTICLESWHENDIE
Particles to create when death should occur

See Also:
Constant Field Values
Constructor Detail

BloodParticle

public BloodParticle()
Creates a new Particle instance.

Method Detail

getCanDie

public boolean getCanDie()
Should return canDie

Returns:
boolean value

setCanDie

public void setCanDie(boolean a)
Should return canDie

Parameters:
a - for candie boolean value

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