www.pudn.com > MyGame.rar > GameSection.h


// GameSection.h: interface for the CGameSection class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_GAMESECTION_H__76357C02_8018_4289_8FE1_12A9E01C7E3E__INCLUDED_) 
#define AFX_GAMESECTION_H__76357C02_8018_4289_8FE1_12A9E01C7E3E__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CGameSection   
{ 
public: 
	CGameSection(); 
	virtual ~CGameSection(); 
	virtual void KeyDown(UINT nChar){}; 
	virtual void KeyUp(UINT nChar){}; 
	virtual void Reshape(int w, int h){}; 
	virtual void Init(int=0,int=0){};	 
	virtual void End(){};	 
	virtual int Draw(){return 0;};	 
	virtual void Update(int dt){};	 
	int ScreenW; 
	int ScreenH; 
 
}; 
 
#endif // !defined(AFX_GAMESECTION_H__76357C02_8018_4289_8FE1_12A9E01C7E3E__INCLUDED_)