cs015.SP
Class RoundEyes

java.lang.Object
  extended bycs015.SP.RoundEyes
All Implemented Interfaces:
SnowEyes, SnowPersonConstants

public class RoundEyes
extends java.lang.Object
implements SnowEyes, SnowPersonConstants

Modified by Kalin Agrawal (kagrawal) to work with NGP, 7/1/1999


Field Summary
 
Fields inherited from interface cs015.SP.SnowPersonConstants
DIMENSION, LOCATION
 
Constructor Summary
RoundEyes()
          Initializes the eyes and positions them on the screen.
 
Method Summary
 void Blink()
          Makes both eyes blink by adding an OpenClose behavior to them.
 void Close()
          Closes both eyes.
 void Open()
          Opens both eyes.
 void StartAnimate()
          This method should start some sort of the animation of the eyes, like making them blink at regular intervals.
 void Wink()
          Adds behavior to the right eye that makes it open and close.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundEyes

public RoundEyes()
Initializes the eyes and positions them on the screen. The eyes are open by default.

Method Detail

Open

public void Open()
Opens both eyes.

Specified by:
Open in interface SnowEyes

Close

public void Close()
Closes both eyes.

Specified by:
Close in interface SnowEyes

Wink

public void Wink()
Adds behavior to the right eye that makes it open and close.

Specified by:
Wink in interface SnowEyes

Blink

public void Blink()
Makes both eyes blink by adding an OpenClose behavior to them.

Specified by:
Blink in interface SnowEyes

StartAnimate

public void StartAnimate()
Description copied from interface: SnowEyes
This method should start some sort of the animation of the eyes, like making them blink at regular intervals.

Specified by:
StartAnimate in interface SnowEyes