【正文】
int Search7(CCardsTypeamp。 int Search8(CCardsTypeamp。 int Search9(CCardsTypeamp。 int SearchBeyond10(CCardsTypeamp。 BOOL AI_Patch1()。 virtual ~CPlayingCards()。 void ScanToTable()。 int CleanUp()。 int DirectChoose()。)。 顯示信息功能 分牌 開始游戲后,系統(tǒng)會自動輪流分發(fā)紙牌到三個玩家手里,留下 3張紙牌做底牌。 for(int i=0。i++) { //發(fā)牌給左邊玩家 。 東華理工大學長江學院畢業(yè)設(shè)計(論文) 詳細設(shè)計與系統(tǒng)實現(xiàn) 18 MoveCard(Left_x0, pCardsMapLeft0[i].m_nY, Card_x, Card_y, 0, 17)。 //發(fā)牌給中間玩家 。 MoveCard(pCardsMapCenter0[i].m_nX, Center_y0, Card_x, Card_y, pCenterCardsm_cCards[i].m_nColor, pCenterCardsm_cCards[i].m_nValue, 100)。 PlaySound(MAKEINTRESOURCE(IDR_GIVE),AfxGetResourceHandle(), SND_ASYNC|SND_RESOURCE|SND_NODEFAULT )。 pRightCardsm_cCards[i] = g_cAllCards[i*3 + 2]。 pRightCardsm_nCardsCounter++。 PlaySound(MAKEINTRESOURCE(IDR_GIVE),AfxGetResourceHandle(), SND_ASYNC|SND_RESOURCE|SND_NODEFAULT )。 pCardsMapm_cLordCards[0].m_bVisual = 1。 //第二張地主牌 。 // MoveCard(Lord_Card2_x, Lord_Card2_y, Card_x, Card_y, 0, 17, 50)。 RedrawGame()。 PlaySound(MAKEINTRESOURCE(IDR_GIVE),AfxGetResourceHandle(), SND_ASYNC|SND_RESOURCE|SND_NODEFAULT )。 pCardsMapm_cLordCards[2].m_bVisual = 1。 RedrawGame()。 產(chǎn)生地主 當有一方隨機被選中是否要當?shù)刂鲿r,其可以選擇當?shù)刂骰蛘卟划敗? LPDIRECTDRAWSURFACE7 lpddsbg_Person[6]。 public: CDrawItemEngine()。 public: 東華理工大學長江學院畢業(yè)設(shè)計(論文) 詳細設(shè)計與系統(tǒng)實現(xiàn) 21 int Init()。 int GameCounter(int nGame_Counter)。 int ChooseLord()。 int GameScore(int nCurrentLord,int nLeft,int nCenter,int nRight)。 如果不當,系統(tǒng)會再次隨機在另外兩個玩家身上選擇地主。其顯示信息截圖如下: 圖 64牌面顯示 出牌 顯示 當玩家用鼠標點擊某個牌時 ,該牌會彈出來 ,高出其他兄弟牌半截 ,此時 ,它在牌組 cardHit 中的位置 position 已經(jīng)被取出并存入 中 ,等待發(fā)送至服務(wù)器端 .當用戶選完想出的牌 , 點擊出牌圖標后 ,而服務(wù)器會判斷其出牌是否合法,如果合法,則選中的牌就會隨之被發(fā)送到服務(wù)器端儲存起來。 其截圖如下: 圖 65 選中的牌正常打出去 非法出牌 顯示 如果不合法 ,系統(tǒng)將不打出去 ,并且,將不合法的牌還原到動作者手中,讓動作者東華理工大學長江學院畢業(yè)設(shè)計(論文) 詳細設(shè)計與系統(tǒng)實現(xiàn) 22 重新選擇 , 出牌 OR 過牌。勝出的玩家會得到積分,而輸了的玩家則會扣掉積分。 ::RedrawGame(NULL)。 地主(原有積分) 積分 +2 積分 2 最 終地主的積分 勝負 勝 負 非地主(原有的積分) 積分 +1 積分 1 最終非地主的積分 勝負 勝 負 東華理工大學長江學院畢業(yè)設(shè)計(論文) 詳細設(shè)計與系統(tǒng)實現(xiàn) 23 //左邊玩家 。 pDrawTextGDI(pLeftPlayerm_szName,400,350,RGB(0,0,0),200,lpddsback)。 sprintf(score_info,%d,nLeft)。 //中間玩家 。 pDrawTextGDI(pCenterPlayerm_szName,490,350,RGB(0,0,0),200,lpddsback)。 sprintf(score_info,%d,nCenter)。 //右邊玩家 。 pDrawTextGDI(pRightPlayerm_szName,580,350,RGB(0,0,0),200, lpddsback)。 sprintf(score_info,%d,nRight)。 switch( nCurrentLord ) { case 0: pDrawDrawSurface(lpddsbg_Menu[1], 3903,2703,76,76, lpddsback,1)。 case 1: pDrawDrawSurface(lpddsbg_Menu[1], 4803,2703,76,76, lpddsback,1)。 case 2: pDrawDrawSurface(lpddsbg_Menu[1], 5703, 2703,76,76, lpddsback,1)。 Sleep(3000)。 } void CDrawItemEngine::Redraw(LPDIRECTDRAWSURFACE7 pSurface) { if( pCardsMapm_nUpCounter == 0 ) { pDrawDrawSurface(lpddsbg_Menu[4],660, 550,80,30, lpddsback,0)。 } switch( pGamem_nCurrentLord ) { case 0: pDrawDrawSurface(lpddsbg_Menu[1],403, 303,76,76, lpddsback,1)。 case 1: pDrawDrawSurface(lpddsbg_Menu[1], 403, 6203,76,76, lpddsback,1)。 case 2: pDrawDrawSurface(lpddsbg_Menu[1], 9103, 303,76,76, lpddsback,1)。 }東華理工大學長江學院畢業(yè)設(shè)計(論文) 結(jié)論 25 結(jié) 論 畢業(yè)設(shè)計是對我們大學生活四年來教學的一個總結(jié)性考察,里面包含了我們學過的很多方面的知識,平時的學習都是自己聽老師講解,或者就是做練習之類,缺少了自己的獨立思考,通過這次的畢業(yè)設(shè)計,讓自己清楚了解到自己的學習程度,和自我學習思考的能力。 在整個過程中,我學到了新知識,擴大了知識面。在論文的設(shè)計中它不僅培養(yǎng)了我嚴謹?shù)乃季S方法,更造就了我積極樂觀的生活態(tài)度。東華理工大學長江學院畢業(yè)設(shè)計(論文) 致謝 26 致 謝 為期三個多月的畢業(yè)設(shè)計即將結(jié)束,也預示著四年的大學學習生活將要畫上一個圓滿的句號??墒墙裉旎仡櫫艘幌乱粋€學期的努力 ,卻欣然發(fā)現(xiàn),在這個學期里學到的東西很多很多 。同時對于專業(yè)的特點 ,性質(zhì)有了進一步的認識。 另外,也要感謝學校在這方面給予我們提供 了大量的支持和幫助,給每個設(shè)計小組都配有指導老師,幫助我們能順利的完成整個設(shè)計。D Books, ag an employment tribunal clai Emloyment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if: you don39。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept i. If you are worried about how the time limits apply to you If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。s antiracism taskforce, is in London for the Football Association39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Ya ya Toure, he told BBC Sport. For me it39。s 21 win. Michel Platini, president of European football39。s actions. CSKA said they were surprised and disappointed by Toure39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do ??傆X得自己似乎應(yīng)該去做點什么,或者寫點什么。 The end of our life, and can meet many things really do? 而窮盡我們的一生,又能遇到多少事情是真正地非做不可? During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are opti