Class Detector

java.lang.Object
  extended by Detector
Direct Known Subclasses:
Bumper, Hole, Paddle

public class Detector
extends java.lang.Object


Field Summary
(package private)  boolean active
           
(package private)  double height
           
(package private)  double timeInactive
           
(package private)  long val
           
(package private)  double width
           
(package private)  double x
           
(package private)  double y
           
 
Constructor Summary
Detector(double xl, double yl, long vall, boolean activel)
           
 
Method Summary
(package private)  void activate(double time)
           
(package private)  void deactivate(double time)
           
(package private)  boolean detect(int xh, int yh, QmGame qmGame)
           
(package private)  void plot(java.awt.Graphics g, QmGame qmGame)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

double x

y

double y

width

double width

height

double height

timeInactive

double timeInactive

val

long val

active

boolean active
Constructor Detail

Detector

Detector(double xl,
         double yl,
         long vall,
         boolean activel)
Method Detail

detect

boolean detect(int xh,
               int yh,
               QmGame qmGame)

plot

void plot(java.awt.Graphics g,
          QmGame qmGame)

activate

void activate(double time)

deactivate

void deactivate(double time)