All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class breakout.GhostBall

java.lang.Object
   |
   +----breakout.GhostBall

public class GhostBall
extends java.lang.Object
implements breakout.BreakOutBall

Variable Index

 o ballrepos
 o ballType
 o brickrepos
 o center
 o radius
 o screen
 o xVel
 o yVel

Constructor Index

 o GhostBall(ScreenCanvas, BrickRepository, BallRepository, int, int, int)

Method Index

 o changeCenter(int, int)
 o changeXvelocity(double)
 o changeYvelocity(double)
 o getCenter()
 o getRadius()
 o getXvelocity()
 o getYvelocity()
 o paintGhostBall(Graphics)

Variables

 o screen
 breakout.ScreenCanvas screen
 o brickrepos
 breakout.BrickRepository brickrepos
 o ballrepos
 breakout.BallRepository ballrepos
 o center
 java.awt.Point center
 o radius
 public double radius
 o xVel
 public double xVel
 o yVel
 public double yVel
 o ballType
 public int ballType

Constructors

 o GhostBall
 public GhostBall(breakout.ScreenCanvas screen,
                  breakout.BrickRepository brickrepos,
                  breakout.BallRepository ballrepos,
                  int centerX,
                  int centerY,
                  int ballType)

Methods

 o getCenter
 public java.awt.Point getCenter()
 o changeCenter
 public void changeCenter(int x,
                          int y)
 o getRadius
 public double getRadius()
 o getXvelocity
 public double getXvelocity()
 o getYvelocity
 public double getYvelocity()
 o changeXvelocity
 public void changeXvelocity(double xVel)
 o changeYvelocity
 public void changeYvelocity(double yVel)
 o paintGhostBall
 public void paintGhostBall(java.awt.Graphics g)

All Packages  Class Hierarchy  This Package  Previous  Next  Index