PREV CLASS   NEXT CLASS FRAMES    NO FRAMES     SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
"Antares II" design

Class Beeper

java.lang.Object
  extended byjava.util.Observable
      extended byBeeper

public class Beeper
extends java.util.Observable

Beepers are created when the game first started and it keep tracks of its lifetime. A beeper is removed when either its lifetime is up or it's collected by the robot. There are always 2 beepers in the maze at any given time.


Constructor Summary
Beeper(int x, int y)
           
 
Method Summary
 void decLife()
          Decrement beeper's lifetime.
 boolean getExist()
           
 int getX()
           
 int getY()
           
 void remove()
          Remove this beeper from the panel.
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Beeper

public Beeper(int x,
              int y)
Method Detail

getX

public int getX()

getY

public int getY()

getExist

public boolean getExist()

decLife

public void decLife()
Decrement beeper's lifetime. When beeper's lifetime is up, it is disabled.


remove

public void remove()
Remove this beeper from the panel.


 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES     SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD