Class Ball
java.lang.Object
|
+----java.awt.Rectangle
|
+----Ball
- class Ball
- extends Rectangle
Sorry, not documented yet.
Source
-
angle
- 0=Right, PI/2=Up
-
bojng
-
-
bounceBottom
- Bounce from bottom
-
curTime
- Time since xstart/ystart
-
speed
- Pixel/Tick
-
speedUpCntr
-
-
speedUpTime
- Speed up every ...
-
sprad
- Radius of sphere (Pixel)
-
xcur
- Current position (Pixel, Center)
-
xspeed
- Current speeds (Pixel/Tick)
-
xstart
- Start position of current movement
-
ycur
- Current position (Pixel, Center)
-
yspeed
- Current speeds (Pixel/Tick)
-
ystart
- Start position of current movement
-
Ball(Ball, double)
-
-
Ball(BojngInterface, int, int)
-
-
bounce(boolean, boolean)
-
-
bounceBlocks()
- Zusammenstoesse erfassen
-
bounceRect(Rectangle, Rectangle, boolean)
-
-
bounceWalls()
-
-
calcCurXY()
-
-
calcSpeed()
- xspeed, yspeed aus speed und angle berechnen
-
checkHitInBlock(Rectangle, int, int)
-
-
correctAngle()
- sehr flache Winkel vermeiden
-
draw()
- Draws the ball on backimg
-
move()
- Moves the ball coordinates, no drawing
-
moveTo(int, int)
-
-
moveTo(int, int, double)
-
-
remove()
- Removes the ball from backimg
-
tick()
-
sprad
int sprad
- Radius of sphere (Pixel)
speed
double speed
- Pixel/Tick
angle
double angle
- 0=Right, PI/2=Up
xstart
double xstart
- Start position of current movement
ystart
double ystart
- Start position of current movement
xspeed
double xspeed
- Current speeds (Pixel/Tick)
yspeed
double yspeed
- Current speeds (Pixel/Tick)
curTime
double curTime
- Time since xstart/ystart
xcur
double xcur
- Current position (Pixel, Center)
ycur
double ycur
- Current position (Pixel, Center)
bounceBottom
boolean bounceBottom
- Bounce from bottom
speedUpCntr
int speedUpCntr
speedUpTime
int speedUpTime
- Speed up every ... ms
bojng
BojngInterface bojng
Ball
Ball(BojngInterface bojng,
int x,
int y)
Ball
Ball(Ball ball,
double angleDisp)
moveTo
void moveTo(int x,
int y)
moveTo
void moveTo(int x,
int y,
double a)
tick
boolean tick()
calcSpeed
void calcSpeed()
- xspeed, yspeed aus speed und angle berechnen
draw
void draw()
- Draws the ball on backimg
remove
void remove()
- Removes the ball from backimg
move
boolean move()
- Moves the ball coordinates, no drawing
calcCurXY
void calcCurXY()
bounceWalls
boolean bounceWalls()
bounce
void bounce(boolean bounceX,
boolean bounceY)
correctAngle
void correctAngle()
- sehr flache Winkel vermeiden
bounceBlocks
void bounceBlocks()
- Zusammenstoesse erfassen
bounceRect
void bounceRect(Rectangle ball,
Rectangle rect,
boolean jitter)
checkHitInBlock
Rectangle checkHitInBlock(Rectangle r1,
int bx,
int by)