Class Diagram
2017-04-04 17:05:45 0 举报
1
作者其他创作
大纲/内容
Feixingwu
-y:int-width:int-height:int-image:BufferedImage
+getX():int+setX(inx:int):void+getY():int+setY(iny:int):void+getWidth():int+setWidth(in width:int):void+getHeight():int+setHeight(in height:int):void+getImage():BuferedImage+setImage(in image:BuferedImage):void+outOfBounds():boolean(idl)+step():void+shootBy(in bullet:Bullet):boolean(idl)
Bee
+xSpeed():int+ySpeed():int+awardType():int+Mifeng(in img:BulleredImage)+getType():int+outOfBounds():boolean(idl)+step()):void
ShootGame
-score:int-timer:Timer-intervel:int+background:BufferdImage-airplane:BufferedImage-Mifeng:BufferedImage-bullet:BufferedImage-hero0:BufferedImage-hero1:BufferedImage-flyings:FlyingObject[]-bullets:Bullet[]-hero:Hero-start:BuffferedImage-pause:BufferedImage-gameover:BufferedImage
+paint(g:Graphics):void+paintHero(ing:Graphics):void+paintBullets(in g:Graphics):void+paintFlyingObjects(in g:Graphics):void+paintScore((in g:Graphics):void+paintState():void+main():void+action():void+nextOne():FlyingObject+enterAction():void+nextOne():FlyingObject+enterAction()+stepAction()+shootAction()+bangAction()+deleteOutOBounds():void+checkGameOverAction():void+isGameOver():boolean(idl)+bang():void
Hero
-doubleFire:int-life:int-images:BufferedImage[]-index:int
Bullet
- speed:int
Airplane
+Airplane(in img:BufferedImage)+getScore():int+outOfBounds():blliean(idl)+step():void
Award
+getType():int
Enemy
+getScore():int
0 条评论
下一页