重做斗地主View.h
资源名称:DouDiZhu.rar [点击查看]
上传用户:xyf7799
上传日期:2022-08-01
资源大小:2008k
文件大小:2k
源码类别:
棋牌游戏
开发平台:
Visual C++
- // 重做斗地主View.h : interface of the CMyView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_VIEW_H__8551F6F1_362F_4B3D_9C87_A8017BFE7ACB__INCLUDED_)
- #define AFX_VIEW_H__8551F6F1_362F_4B3D_9C87_A8017BFE7ACB__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "om1.h"
- #include "om2.h"
- #include "Player.h"
- #include "Last.h"
- #include "FanRen.h"
- class CMyView : public CView
- {
- protected: // create from serialization only
- CMyView();
- DECLARE_DYNCREATE(CMyView)
- // Attributes
- public:
- CMyDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMyView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyView)
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnBanStart();
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void AllQingKong();
- int nIsDiZhu;
- int nZongZiJin[3];
- void BuYao();
- BOOL NoJokerF(int);
- int YuanShuF(int);
- int MagicF(int);
- int YuanShuL(int);
- int MagicL(int);
- int nLastFormWho;
- BOOL ChuPaiRule();
- int nCusor[20];
- int nIsWho;
- void TransparentBitmap(HDC hdc, HBITMAP hBitmap,short xStart, short yStart,
- short xadd,short yadd, COLORREF cTransparentColor);
- void PaiXu(int );
- int FoundationCompile(int x);
- Com1 C1[20];
- Com2 C2[20];
- Player P[20];
- Last L[20];
- FanRen F[20];
- CBitmap bmpPai[54];
- CBitmap bmpTable;
- CBitmap bmpCusor;
- CBitmap bmpNull;
- CBitmap bmpTurn[3];
- CBitmap bmpZheDang;
- };
- #ifndef _DEBUG // debug version in 重做斗地主View.cpp
- inline CMyDoc* CMyView::GetDocument()
- { return (CMyDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_VIEW_H__8551F6F1_362F_4B3D_9C87_A8017BFE7ACB__INCLUDED_)