开始游戏
Move
:CPlane
:CMyWnd
CMyApp
+InitInstance():BOOL
include
:CBullet
OnKeyDown
用户
CBullet
+x:int+y:int +exsist:BOOL+state:int+speed:int
+InitBullet():BOOL+BulletMove()+Fire()+IsOut():BOOL
CFrameWnd
GetKey
射击
BulletMove()
CMyWnd
-mplane:CPlane-mbullet:CBullet-mdc:CDC *-bfdc:CDC *-bgmap:CBitmap *-bfmap:CBitmap *-bmap:CBitmap *-emap:CBitmap *-pmap:CBitmap *
-InitView():BOOL-UpdateView():BOOL-OnKeyDown()-OnTimer()
UpdateView
TImer
WM_TIMER
PlaneMove()
CWinApp
-m_hMainWnd:CFrameWnd *
移动导弹
CPlane
+x:int+y:int +exsist:BOOL+state:int+explode:int +speed:int
+InitPlane():BOOL+PlaneMove()+NewPlane()+PlaneExplode()+IsOut():BOOL