CSE115.Gumball
Class GumballFallingBehavior

java.lang.Object
  extended byNGP.Timer
      extended byCSE115.Gumball.GumballFallingBehavior
All Implemented Interfaces:
ActionListener, EventListener

public class GumballFallingBehavior
extends Timer

Calls update on the Gumball every time it activates.

Author:
Carl Alphonce (alphonce) Based heavily on the cs015.SP.RainUpdateBehavior class, authored by:, Matt Chotin (mhc)

Constructor Summary
GumballFallingBehavior(Gumball r)
           
 
Method Summary
 void activate()
          Call update on the gumball
 
Methods inherited from class NGP.Timer
actionPerformed, getDelay, setDelay, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GumballFallingBehavior

public GumballFallingBehavior(Gumball r)
Method Detail

activate

public void activate()
Call update on the gumball