All Packages Class Hierarchy This Package Previous Next Index
Class breakout.ScreenCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----breakout.ScreenCanvas
- public class ScreenCanvas
- extends java.awt.Canvas
-
ballrepos
-
-
brickrepos
-
-
CanvasPaddleLR
-
-
CanvasPaddleUL
-
-
changeX
-
-
changeY
-
-
connection
- Field variable to remember the name of the Client connection
-
ghostX
-
-
ghostY
-
-
myScore
-
-
myScoreString
-
-
numberOfBrick100s
-
-
numberOfPlayers
-
-
offDimension
-
-
offGraphics
-
-
offImage
-
-
otherScore
-
-
otherScoreString
-
-
pause
-
-
playerID
-
-
tempXpos
-
-
tempYpos
-
-
xMax
-
-
xMin
-
-
yMax
-
-
yMin
-
-
ScreenCanvas()
-
-
checkHitPaddle(ClassicBall)
-
-
getMaxX()
-
-
getMaxY()
-
-
getMinX()
-
-
getMinY()
-
-
getPause()
-
-
mouseMovePaddle(int, int)
-
-
paint(Graphics)
-
-
paintFrame(Graphics)
-
-
paintPaddle(Graphics)
-
-
paintScores(Graphics)
-
-
pressAction(int, int)
-
-
showStuff()
-
-
update(Graphics)
-
-
updateLeft()
-
-
updatePlayers()
- updatePlayers() reads the x and y coordinates of the ghost ball
read by the client, then it calls ScreenCanvas's updatingGhostBall
method, giving it the x and y coordinates the client read.
-
updateRight()
-
-
updatingGhostBall(int, int)
-
brickrepos
public breakout.BrickRepository brickrepos
ballrepos
public breakout.BallRepository ballrepos
xMin
public int xMin
xMax
public int xMax
yMin
public int yMin
yMax
public int yMax
CanvasPaddleUL
public java.awt.Point CanvasPaddleUL
CanvasPaddleLR
public java.awt.Point CanvasPaddleLR
offDimension
public java.awt.Dimension offDimension
offImage
public java.awt.Image offImage
offGraphics
public java.awt.Graphics offGraphics
pause
public boolean pause
myScore
public int myScore
otherScore
public int otherScore
numberOfBrick100s
public int numberOfBrick100s
changeX
public boolean changeX
changeY
public boolean changeY
myScoreString
public java.lang.String myScoreString
otherScoreString
public java.lang.String otherScoreString
tempXpos
private int tempXpos
tempYpos
private int tempYpos
numberOfPlayers
public int numberOfPlayers
playerID
public int playerID
ghostX
public int ghostX
ghostY
public int ghostY
connection
public breakout.BOClient connection
- Field variable to remember the name of the Client connection
ScreenCanvas
public ScreenCanvas()
update
public void update(java.awt.Graphics g)
- Overrides:
- update in class java.awt.Component
paint
public void paint(java.awt.Graphics g)
- Overrides:
- paint in class java.awt.Canvas
paintFrame
public void paintFrame(java.awt.Graphics g)
paintPaddle
public void paintPaddle(java.awt.Graphics g)
paintScores
public void paintScores(java.awt.Graphics g)
showStuff
public void showStuff()
checkHitPaddle
public void checkHitPaddle(breakout.ClassicBall boball)
mouseMovePaddle
public void mouseMovePaddle(int xPos,
int yPos)
updateLeft
public void updateLeft()
updateRight
public void updateRight()
getPause
public boolean getPause()
getMaxX
public int getMaxX()
getMinX
public int getMinX()
getMaxY
public int getMaxY()
getMinY
public int getMinY()
pressAction
public void pressAction(int x,
int y)
updatePlayers
public void updatePlayers()
- updatePlayers() reads the x and y coordinates of the ghost ball
read by the client, then it calls ScreenCanvas's updatingGhostBall
method, giving it the x and y coordinates the client read.
updatingGhostBall
public void updatingGhostBall(int x,
int y)
All Packages Class Hierarchy This Package Previous Next Index