tanke_huangleleView.h
上传用户:jindun001
上传日期:2021-02-02
资源大小:13780k
文件大小:3k
源码类别:

射击游戏

开发平台:

Visual C++

  1. // tanke_huangleleView.h : interface of the CTanke_huangleleView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_TANKE_HUANGLELEVIEW_H__FB714125_8413_4426_974A_163B790D3A4E__INCLUDED_)
  5. #define AFX_TANKE_HUANGLELEVIEW_H__FB714125_8413_4426_974A_163B790D3A4E__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define player 1
  10. #define emery 2
  11. #define MAXNUM 7
  12. #define sizetangke 28
  13. int playerfile[112][112];
  14. int emeryfile[112][112];
  15. int playerbulletfile[7][7];
  16. int emerybulletfile[7][7];
  17. int explosionarr1[28][28];
  18. int explosionarr2[64][64];
  19. int bornarr1[32][32];
  20. int bornarr2[32][32];
  21. int bornpoint;
  22. int playerx,playery;
  23. int play;
  24. int explosion;
  25. int playerbulletx,playerbullety;
  26. int emerynum;
  27. int emerybulletx[MAXNUM],emerybullety[MAXNUM];
  28. int emerybulletdirection[MAXNUM];
  29. int emerycannon[MAXNUM];
  30. int emerytankelive[MAXNUM];
  31. int emerybulletrun[MAXNUM];
  32. int playertankelive;
  33. int born;
  34. int cannon;
  35. int playerbulletrun;
  36. int playerbulletdirection;
  37. int emeryx[MAXNUM],emeryy[MAXNUM],emerydirection[MAXNUM];
  38. int countx,county;
  39. CRect rc;
  40. //CRect remery[MAXNUM];
  41. class CTanke_huangleleView : public CView
  42. {
  43. protected: // create from serialization only
  44. CTanke_huangleleView();
  45. DECLARE_DYNCREATE(CTanke_huangleleView)
  46. // Attributes
  47. public:
  48. CTanke_huangleleDoc* GetDocument();
  49. // Operations
  50. public:
  51. // Overrides
  52. // ClassWizard generated virtual function overrides
  53. //{{AFX_VIRTUAL(CTanke_huangleleView)
  54. public:
  55. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  56. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  57. protected:
  58. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  59. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  60. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  61. //}}AFX_VIRTUAL
  62. // Implementation
  63. public:
  64. virtual ~CTanke_huangleleView();
  65. #ifdef _DEBUG
  66. virtual void AssertValid() const;
  67. virtual void Dump(CDumpContext& dc) const;
  68. #endif
  69. protected:
  70. // Generated message map functions
  71. protected:
  72. //{{AFX_MSG(CTanke_huangleleView)
  73. afx_msg void OnStart();
  74. afx_msg void OnStop();
  75. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  76. afx_msg void OnTimer(UINT nIDEvent);
  77. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. };
  81. #ifndef _DEBUG  // debug version in tanke_huangleleView.cpp
  82. inline CTanke_huangleleDoc* CTanke_huangleleView::GetDocument()
  83.    { return (CTanke_huangleleDoc*)m_pDocument; }
  84. #endif
  85. /////////////////////////////////////////////////////////////////////////////
  86. //{{AFX_INSERT_LOCATION}}
  87. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  88. #endif // !defined(AFX_TANKE_HUANGLELEVIEW_H__FB714125_8413_4426_974A_163B790D3A4E__INCLUDED_)