10 likes | 182 Views
PlayGame. LetterListener. Paddle. - remove:boolean - moveX , moveY , hits, lives:int. - height:int - width:int - PaddleColor , BorderColor : Color. + actionPerformed ( ActionEvent ):void. + PlayGame ( int , int , int , int ) + getHits (): int + getLives (): int + addHit ():void
E N D
PlayGame LetterListener Paddle -remove:boolean -moveX, moveY, hits, lives:int -height:int -width:int -PaddleColor, BorderColor: Color +actionPerformed(ActionEvent):void +PlayGame(int, int, int, int) +getHits():int +getLives():int +addHit():void +nextLife():void +getRemove():boolean +setRemove(boolean):void +getMoveX():int +getMoveY():int +setMoveX():void +setMoveY():void Canvas +Paddle(int, int, Color, Color) +getHeight():int +getWidth():int +getPaddleColor():Color +getBorderColor():Color +newY(int,boolean):int +newX(intboolean):int +paintComponent(Graphics):void KoalaListener +actionPerformed(ActionEvent):void GameImage KoalaListener2 -gameImage:Image -imageWidth:int -imageHeight:int +actionPerformed(ActionEvent):void +GameImage(String, int, int) MainGame JPanel define in javax.swing -sPane:JSplitPane -sidePanel:SidePanel -mainPanel:MainPanel MainPanell -playGame:PlayGame -background, koala1:GameImage -tpad,bpad,lpad,rpad: Paddle -canvas:CanvasPanel -pointList, PadPtList:ArrayList -tempPoint, pt: Point -timer,timer2:Timer -LoseLife:boolean -FloorWalls,SideWalls,x,y: int -DELAY, DELAY2, DIAMETER: final int -PAD_MAX,PAD_MIN,MOVE_PAD: final int +MainPanel(Vector,SelectPanel) +getHits():int +getLives():int +GenerateRandCoor(int,int):Point +GenerateRandInt(int):int +getPadList():void +actionPerformed(ActionEvent):void +int():void SidePanel JApplet define in javax.swing -menuPanelSide:Jpanel -HitsLabel:Jlabel -PointsLabel:Jlabel -LivesLabel:Jlabel -BlankLabel:Jlabel -canvas:CanvasPanel -mainPanel:MainPanel -timer:Timer -lives:int -hits:int -DELAY:finalint +SidePanel(MainPanel) +actionPerformed(ActionEvent):void ScoreListener +actionPerformed(ActionEvent):void Canvas +paintComponent(Graphics):void