tanke_huangleleView.h
资源名称:TankWar.rar [点击查看]
上传用户:jindun001
上传日期:2021-02-02
资源大小:13780k
文件大小:3k
源码类别:
射击游戏
开发平台:
Visual C++
- // tanke_huangleleView.h : interface of the CTanke_huangleleView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_TANKE_HUANGLELEVIEW_H__FB714125_8413_4426_974A_163B790D3A4E__INCLUDED_)
- #define AFX_TANKE_HUANGLELEVIEW_H__FB714125_8413_4426_974A_163B790D3A4E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define player 1
- #define emery 2
- #define MAXNUM 7
- #define sizetangke 28
- int playerfile[112][112];
- int emeryfile[112][112];
- int playerbulletfile[7][7];
- int emerybulletfile[7][7];
- int explosionarr1[28][28];
- int explosionarr2[64][64];
- int bornarr1[32][32];
- int bornarr2[32][32];
- int bornpoint;
- int playerx,playery;
- int play;
- int explosion;
- int playerbulletx,playerbullety;
- int emerynum;
- int emerybulletx[MAXNUM],emerybullety[MAXNUM];
- int emerybulletdirection[MAXNUM];
- int emerycannon[MAXNUM];
- int emerytankelive[MAXNUM];
- int emerybulletrun[MAXNUM];
- int playertankelive;
- int born;
- int cannon;
- int playerbulletrun;
- int playerbulletdirection;
- int emeryx[MAXNUM],emeryy[MAXNUM],emerydirection[MAXNUM];
- int countx,county;
- CRect rc;
- //CRect remery[MAXNUM];
- class CTanke_huangleleView : public CView
- {
- protected: // create from serialization only
- CTanke_huangleleView();
- DECLARE_DYNCREATE(CTanke_huangleleView)
- // Attributes
- public:
- CTanke_huangleleDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTanke_huangleleView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CTanke_huangleleView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CTanke_huangleleView)
- afx_msg void OnStart();
- afx_msg void OnStop();
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in tanke_huangleleView.cpp
- inline CTanke_huangleleDoc* CTanke_huangleleView::GetDocument()
- { return (CTanke_huangleleDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TANKE_HUANGLELEVIEW_H__FB714125_8413_4426_974A_163B790D3A4E__INCLUDED_)