com.planeth.gtroids.agents
Class Beeper

java.lang.Object
  extended bycom.planeth.gtroids.agents.Beeper

public class Beeper
extends java.lang.Object

Beeper, Controls the main beep sound while running a game
It must be updated by a Thread

Author:
Andreas Grässer, gal@planet-h.com.
created 24.10.2005

Constructor Summary
Beeper()
          Constructor for Beeper.
 
Method Summary
 void adjustSpeed(double speed)
          Changes the speed of the beeper.
protected  void finalize()
           
 void update()
          Updates the Beeper.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Beeper

public Beeper()
Constructor for Beeper.

Method Detail

update

public void update()
Updates the Beeper.
The update method controls the time between the beeps and triggers the sound if the time is over.


adjustSpeed

public void adjustSpeed(double speed)
Changes the speed of the beeper.
Higher speed = lower repeatTime

Parameters:
speed -

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable
See Also:
Object.finalize()