打砖块UML
2018-01-15 14:20:39 2 举报
一个打砖块游戏的UML图
作者其他创作
大纲/内容
板类Pad
+ location:Point+ size:Point- gameP:GamePanel
+ Pad(GamePanel)+ update():void+ draw(Graphics):void
宝物类Bonus
+ location:Point+ size:Point+ exist:boolean+ hp:int+ type:int- blk:Block- gameP:GamePanel
砖块类Block
+ location:Point[]+ size:Point+ num:int+ exist:boolean[]+ hp:int[]- gameP:GamePanel- allocation:Point
+ Block(GamePanel)+ update():void+ draw(Graphics):void
球类Ball
+ SPEEDDOWN:int=0+ WIDTHCREATER:int=1+ INVICIBLE:int=2+ STOP:int=3+ hp:int+ score:int- location:Point- diameter:int- dx:int- dy:int- gameP:GamePanel- blk:Block- pd:Pad- bonus:Bonus- padCanBounce:boolean=false- blockCanBounce:boolean=false
游戏框架类GameFrame
+ main(String[]):void
0 条评论
下一页