freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

計算機圖形學課程設計——掃雷游戲程序設計-閱讀頁

2025-06-24 15:01本頁面
  

【正文】 ySound((LPCTSTR)LockResource(m_pSndClock), SND_MEMORY | SND_ASYNC | SND_NODEFAULT)。 //布雷 LayMines(m_pOldMineuRow, m_pOldMineuCol)。 ReleaseCapture()。 } //不是雷的時候,獲取其周圍的雷數(shù)目 around = GetAroundNum(m_pOldMineuRow, m_pOldMineuCol)。 else DrawDownNum(m_pOldMine, around)。 } //判斷是否為勝利 if (Victory()) { Invalidate()。 return。 case GS_VICTORY: case GS_DEAD: ReleaseCapture()。 default : break。 Invalidate()。 InvalidateRect(rcBtn)。 CWnd::OnLButtonUp(nFlags, point)。 UINT minRow = (row == 0) ? 0 : row 1。 UINT minCol = (col == 0) ? 0 : col 1。 UINT around = GetAroundNum(row, col)。 m_pMines[row][col].uOldState = 15 around。 //對周圍一個雷都沒有的空白區(qū)域 if (around == 0) { for (i = minRow。 i++) { for (j = minCol。 j++) { //對于周圍可以拓展的區(qū)域進行的規(guī)拓展 if (!(i == row amp。 j == col) amp。 m_pMines[i][j].uState == STATE_NORMAL amp。 m_pMines[i][j].uAttrib != ATTRIB_MINE) { if (!IsInMineArea(i, j)) continue。 // 遞歸拓展操作 } } } } } 附錄 2:鼠標右鍵點擊事件代碼 void CMineWnd::OnRButtonDown(UINT nFlags, CPoint point) { //笑臉圖按鈕所在的區(qū)域 CRect rcBtn(m_uBtnRect[1], 15, m_uBtnRect[2], 39)。 m_bLRBtnDown = FALSE。 if (!m_pNewMine) return。 OnLRBtnDown(m_pNewMineuRow, m_pNewMineuCol)。 m_pNewMineuOldState = STATE_FLAG。 break。 m_pNewMineuOldState = STATE_DICEY。 break。 m_pNewMineuOldState = STATE_NORMAL。 default: break。 } } CWnd::OnRButtonDown(nFlags, point)。dc) { CDC dcMemory。dc)。 //將內(nèi)存設備與位圖資源關(guān)聯(lián) for (UINT i = 0。 i++) { for (UINT j = 0。 j++) {//根據(jù) [i][j]區(qū)域的雷方塊狀態(tài)拷貝相應的圖像到 [i][j]雷區(qū)的特定區(qū)域 (MINEAREA_FRAME_X+16*j, MINEAREA_FRAME_Y+16*i, 17 16, 16, amp。 } } } 附錄 4:雷區(qū)、笑臉按鈕、 3D 效果外殼和數(shù)字圖像的繪制代碼 void CMineWnd::OnPaint() { CPaintDC dc(this)。 // 內(nèi)存設備 CBitmap bitmap。dc)) { // 使得 bitmap 與實際顯示的 dc 設備兼容 if((amp。bitmap)。m_rcClient, amp。 DrawButton((CPaintDCamp。//笑臉按鈕繪圖 DrawNumber((CPaintDCamp。//數(shù)字圖像繪圖 DrawShell((CPaintDCamp。//3D 效果外殼繪圖 DrawMineArea((CPaintDCamp。//雷區(qū)繪圖 // 將內(nèi)存設備的內(nèi)容拷貝到實際屏幕顯示的設備 (, , , , amp。 ()
點擊復制文檔內(nèi)容
畢業(yè)設計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1