⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manview.h

📁 c++写的游戏
💻 H
字号:
// manView.h : interface of the CManView class
//
/////////////////////////////////////////////////////////////////////////////
#include "new.h"

#if !defined(AFX_MANVIEW_H__47846F3B_5F51_45E4_B214_7FB39A6E7A54__INCLUDED_)
#define AFX_MANVIEW_H__47846F3B_5F51_45E4_B214_7FB39A6E7A54__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



class CManView : public CView
{
protected: // create from serialization only
	CManView();
	DECLARE_DYNCREATE(CManView)

// Attributes
public:
	CManDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CManView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	UINT music(char* sound);
	void func_infor(CDC *mdc);
	int getRHest();
	void setRHest(int record);
	void decre_yw(int speed);
	void decre_y(int speed);
	virtual ~CManView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CManView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void Onkilltimer();
	afx_msg void Onstart();
	afx_msg void Onspeedup();
	afx_msg void Onlowdown();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void Onrestart();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMiddle();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	//UINT m_wDeviceID;
	MCI_OPEN_PARMS mciOpenParms;
	MCI_PLAY_PARMS mciPlayParms;
	int m_yw;
	int m_y;
	int delay;				//延迟player的图像的切换和背景的移动速度
	int state;
	int record_highest;
	int flex;				//在着落前加快左右移动的速度
	int idbforboundr[4];
	int idbforboundl[4];
	UINT nIdbforpfr[4];
	UINT nIdbforpfl[4];
	UINT nIdbforbound[4];
	UINT nIdbforredfl[4];
	UINT nIdbforredfr[4];
	UINT nIdbforreddownl[4];
	UINT nIdbforreddownm[4];
	UINT nIdbforreddownr[4];
	Player* pler;
	Buffle* bfl[8];
	//CBitmap mBitmap;
	RECT rect;
	int speed;
	int tag;
};

#ifndef _DEBUG  // debug version in manView.cpp
inline CManDoc* CManView::GetDocument()
   { return (CManDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MANVIEW_H__47846F3B_5F51_45E4_B214_7FB39A6E7A54__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -