edu.gatech.cs2335.lemmings.engine
Class FlingTrap

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.engine.Portal
      extended byedu.gatech.cs2335.lemmings.engine.FlingTrap
All Implemented Interfaces:
ICleanable

public class FlingTrap
extends Portal

Class FlingTrap: when the lemming comes close to this one, it flings him.

 Revision History:
     v1.0 (Apr. 22, 2004) - Created the FlingTrap class
 

Version:
Version 1.0, Apr. 22, 2004
Author:
Vladimir Urazov

Constructor Summary
FlingTrap()
          Creates a new FlingTrap instance.
 
Method Summary
 void processLemmingEntry(Lemming l)
          This function will be called when a lemming enters this portal.
 
Methods inherited from class edu.gatech.cs2335.lemmings.engine.Portal
cleanUp, getAnimation, getExtent, getParent, getPhysics, setAnimation, setExtent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlingTrap

public FlingTrap()
Creates a new FlingTrap instance.

Method Detail

processLemmingEntry

public void processLemmingEntry(Lemming l)
This function will be called when a lemming enters this portal.

Specified by:
processLemmingEntry in class Portal
Parameters:
l - a Lemming value