home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / WTJ9403.ZIP / POKER / POKERVW.H < prev    next >
C/C++ Source or Header  |  1994-01-31  |  2KB  |  78 lines

  1. // pokervw.h : interface of the CPokerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CPokerView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CPokerView();
  9.     DECLARE_DYNCREATE(CPokerView)
  10.  
  11. // Attributes
  12. public:
  13.     CPokerDoc* GetDocument();
  14.  
  15. // Variables
  16.  
  17. // Operations
  18. public:
  19.  
  20.     int     PlayerCard(int nPlayer, int nCard);
  21.     int     CardDrawMode(int nPlayer, int nCard);
  22.     void    OnAnimate();
  23.     void    Play(int nPlayer);
  24.     void     PlayerAction(int nPlayer, int nBet);
  25.     void    DrawSelect(int nPlayer);
  26.     void    DrawDiscard(int nPlayer);
  27.     void    DrawDeal(int nPlayer);
  28.     void    Showdown(int nPlayer);
  29.     void    DrawOnePlayer(CClientDC * pDC, int nPlayer);
  30.     
  31. // Implementation
  32. public:
  33.     virtual ~CPokerView();
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35. #ifdef _DEBUG
  36.     virtual void AssertValid() const;
  37.     virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39.  
  40.     // Printing support
  41. protected:
  42.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  43.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  44.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  45.  
  46. // Generated message map functions
  47. protected:
  48.     //{{AFX_MSG(CPokerView)
  49.     afx_msg void OnTimer(UINT nIDEvent);
  50.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  51.     afx_msg void OnViewChangecardbacks();
  52.     afx_msg void OnSize(UINT nType, int cx, int cy);
  53.     afx_msg void OnDestroy();
  54.     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  55.     afx_msg void OnFileNewgame();
  56.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  57.     afx_msg void OnUpdateMovesBet(CCmdUI* pCmdUI);
  58.     afx_msg void OnUpdateMovesCall(CCmdUI* pCmdUI);
  59.     afx_msg void OnUpdateMovesCheck(CCmdUI* pCmdUI);
  60.     afx_msg void OnUpdateMovesFold(CCmdUI* pCmdUI);
  61.     afx_msg void OnUpdateMovesRaise(CCmdUI* pCmdUI);
  62.     afx_msg void OnMovesBet();
  63.     afx_msg void OnUpdateMovesDeal(CCmdUI* pCmdUI);
  64.     afx_msg void OnMovesDeal();
  65.     afx_msg void OnMovesCall();
  66.     afx_msg void OnMovesFold();
  67.     afx_msg void OnMovesRaise();
  68.     //}}AFX_MSG
  69.     DECLARE_MESSAGE_MAP()
  70. };
  71.  
  72. #ifndef _DEBUG    // debug version in pokervw.cpp
  73. inline CPokerDoc* CPokerView::GetDocument()
  74.    { return (CPokerDoc*) m_pDocument; }
  75. #endif
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.