📄 black jackview.h
字号:
// Black JackView.h : interface of the CBlackJackView class
//
/////////////////////////////////////////////////////////////////////////////
class CBlackJackView : public CView
{
public:
CRect invalid;
BOOL rant,ingame,computeron,polhard17,bjackbonus,waitforclick,cardview,cheatplayer,polbonus,bmpcardview;
void getnewbet();
void cplayer();
void newround();
void endgame();
void shuffle();
void getcfg();
void deal(BOOL player,int hand);
int i,j,playercards[4][11],dealercards[11],cards[52],cardsplayed,playercount[4],dealcount,
currcard,playersum[4],dealsum,currsplit,redeal,cardsy[52],cardsx[52],splits,cardsindeck[10],
polsplit;
unsigned long bet[4],cash,prevbet;
BOOL dealace11,playerace11[4],surrender[4],blackjack[4];
CString winloss;
CPoint cardloc[52],playbase,dealer,split[4],winlose;
protected: // create from serialization only
CBlackJackView();
DECLARE_DYNCREATE(CBlackJackView)
// Attributes
public:
CBlackJackDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBlackJackView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CBlackJackView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CBlackJackView)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnHit();
afx_msg void OnOptions();
afx_msg void OnRules();
afx_msg void OnSplit();
afx_msg void OnUpdateSplit(CCmdUI* pCmdUI);
afx_msg void OnStand();
afx_msg void OnSurrender();
afx_msg void OnUpdateSurrender(CCmdUI* pCmdUI);
afx_msg void OnDouble();
afx_msg void OnUpdateDouble(CCmdUI* pCmdUI);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnNewRound();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnShuffle();
afx_msg void OnActivateCount();
afx_msg void OnActivateDeckview();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Black JackView.cpp
inline CBlackJackDoc* CBlackJackView::GetDocument()
{ return (CBlackJackDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -