www.pudn.com > HGE_game_damo.rar > GameLogic.h
//// http://dotlive.cnblogs.com/
// GameLogic.h: interface for the GameLogic class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GAMELOGIC_H__C6CB9883_0559_4B23_AE3A_AB283F0D7BE9__INCLUDED_)
#define AFX_GAMELOGIC_H__C6CB9883_0559_4B23_AE3A_AB283F0D7BE9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef unsigned long DWORD;
struct IGameEngine
{
virtual void IGE_DrawABoxCell( int x,int y,DWORD color,int id )=0;
virtual void IGE_DrawText( int x,int y,DWORD c,const char* pStr )=0;
virtual int IGE_GetRandomInt( int min, int max )=0;
};
class GameLogic
{
public:
GameLogic(IGameEngine* pGE);
virtual ~GameLogic();
protected:
IGameEngine* m_pGE;
};
#endif // !defined(AFX_GAMELOGIC_H__C6CB9883_0559_4B23_AE3A_AB283F0D7BE9__INCLUDED_)