home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 11 Learning / 08 Manslow / TanksView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-01  |  1.2 KB  |  56 lines

  1. //Tanks
  2. //Copyright John Manslow
  3. //29/09/2001
  4.  
  5. // TanksView.h : interface of the CTanksView class
  6. //
  7. /////////////////////////////////////////////////////////////////////////////
  8.  
  9. class CTanksView : public CView
  10. {
  11. protected: // create from serialization only
  12.     CTanksView();
  13.     DECLARE_DYNCREATE(CTanksView)
  14.  
  15. // Attributes
  16. public:
  17.     CTanksDoc* GetDocument();
  18.  
  19. // Operations
  20. public:
  21.  
  22. // Overrides
  23.     // ClassWizard generated virtual function overrides
  24.     //{{AFX_VIRTUAL(CTanksView)
  25.     public:
  26.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  27.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28.     protected:
  29.     //}}AFX_VIRTUAL
  30.  
  31. // Implementation
  32. public:
  33.     virtual ~CTanksView();
  34. #ifdef _DEBUG
  35.     virtual void AssertValid() const;
  36.     virtual void Dump(CDumpContext& dc) const;
  37. #endif
  38.  
  39. protected:
  40.  
  41. // Generated message map functions
  42. protected:
  43.     //{{AFX_MSG(CTanksView)
  44.     afx_msg void OnTimer(UINT nIDEvent);
  45.     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48. };
  49.  
  50. #ifndef _DEBUG  // debug version in TanksView.cpp
  51. inline CTanksDoc* CTanksView::GetDocument()
  52.    { return (CTanksDoc*)m_pDocument; }
  53. #endif
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56.