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

Variable Index

 o ballrepos
 o brickrepos
 o CanvasPaddleLR
 o CanvasPaddleUL
 o changeX
 o changeY
 o connection
Field variable to remember the name of the Client connection
 o ghostX
 o ghostY
 o myScore
 o myScoreString
 o numberOfBrick100s
 o numberOfPlayers
 o offDimension
 o offGraphics
 o offImage
 o otherScore
 o otherScoreString
 o pause
 o playerID
 o tempXpos
 o tempYpos
 o xMax
 o xMin
 o yMax
 o yMin

Constructor Index

 o ScreenCanvas()

Method Index

 o checkHitPaddle(ClassicBall)
 o getMaxX()
 o getMaxY()
 o getMinX()
 o getMinY()
 o getPause()
 o mouseMovePaddle(int, int)
 o paint(Graphics)
 o paintFrame(Graphics)
 o paintPaddle(Graphics)
 o paintScores(Graphics)
 o pressAction(int, int)
 o showStuff()
 o update(Graphics)
 o updateLeft()
 o 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.
 o updateRight()
 o updatingGhostBall(int, int)

Variables

 o brickrepos
 public breakout.BrickRepository brickrepos
 o ballrepos
 public breakout.BallRepository ballrepos
 o xMin
 public int xMin
 o xMax
 public int xMax
 o yMin
 public int yMin
 o yMax
 public int yMax
 o CanvasPaddleUL
 public java.awt.Point CanvasPaddleUL
 o CanvasPaddleLR
 public java.awt.Point CanvasPaddleLR
 o offDimension
 public java.awt.Dimension offDimension
 o offImage
 public java.awt.Image offImage
 o offGraphics
 public java.awt.Graphics offGraphics
 o pause
 public boolean pause
 o myScore
 public int myScore
 o otherScore
 public int otherScore
 o numberOfBrick100s
 public int numberOfBrick100s
 o changeX
 public boolean changeX
 o changeY
 public boolean changeY
 o myScoreString
 public java.lang.String myScoreString
 o otherScoreString
 public java.lang.String otherScoreString
 o tempXpos
 private int tempXpos
 o tempYpos
 private int tempYpos
 o numberOfPlayers
 public int numberOfPlayers
 o playerID
 public int playerID
 o ghostX
 public int ghostX
 o ghostY
 public int ghostY
 o connection
 public breakout.BOClient connection
Field variable to remember the name of the Client connection

Constructors

 o ScreenCanvas
 public ScreenCanvas()

Methods

 o update
 public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Component
 o paint
 public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas
 o paintFrame
 public void paintFrame(java.awt.Graphics g)
 o paintPaddle
 public void paintPaddle(java.awt.Graphics g)
 o paintScores
 public void paintScores(java.awt.Graphics g)
 o showStuff
 public void showStuff()
 o checkHitPaddle
 public void checkHitPaddle(breakout.ClassicBall boball)
 o mouseMovePaddle
 public void mouseMovePaddle(int xPos,
                             int yPos)
 o updateLeft
 public void updateLeft()
 o updateRight
 public void updateRight()
 o getPause
 public boolean getPause()
 o getMaxX
 public int getMaxX()
 o getMinX
 public int getMinX()
 o getMaxY
 public int getMaxY()
 o getMinY
 public int getMinY()
 o pressAction
 public void pressAction(int x,
                         int y)
 o 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.

 o updatingGhostBall
 public void updatingGhostBall(int x,
                               int y)

All Packages  Class Hierarchy  This Package  Previous  Next  Index