edu.gatech.cs2335.lemmings.engine
Class Particle

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.physics.PhysicsObject
      extended byedu.gatech.cs2335.lemmings.engine.PrettySprite
          extended byedu.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.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
 

Constructor Detail

Particle

public Particle(java.lang.String s)
Creates a new Particle instance.

Parameters:
s - s
Method Detail

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