All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class breakout.ClassicBall

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

public class ClassicBall
extends java.lang.Object
implements breakout.BreakOutBall, cs101.lang.Animate

Variable Index

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

Constructor Index

 o ClassicBall(ScreenCanvas, BrickRepository, BallRepository, int, int, double, double, int)

Method Index

 o act()
 o changeXvelocity(double)
 o changeYvelocity(double)
 o getCenter()
 o getRadius()
 o getXvelocity()
 o getYvelocity()
 o paintClassicBall(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 anim
 private cs101.lang.AnimatorThread anim
 o ballType
 public int ballType

Constructors

 o ClassicBall
 public ClassicBall(breakout.ScreenCanvas sc,
                    breakout.BrickRepository brickrepos,
                    breakout.BallRepository ballrepos,
                    int centerX,
                    int centerY,
                    double xVel,
                    double yVel,
                    int ballType)

Methods

 o getCenter
 public java.awt.Point getCenter()
 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 paintClassicBall
 public void paintClassicBall(java.awt.Graphics g)
 o act
 public void act()

All Packages  Class Hierarchy  This Package  Previous  Next  Index