www.gusucode.com > VC++游戏雷霆战机源代码-源码程序 > VC++游戏雷霆战机源代码-源码程序\code\BaseObj.cpp

    // BaseObj.cpp: implementation of the CBaseObj class.
// Download by http://www.NewXing.com
//////////////////////////////////////////////////////////////////////

#include "BaseObj.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CBaseObj::CBaseObj(CDirectWnd *win,CObList *ObList)
{
	m_win = win;
	m_ObList = ObList;
	m_ObList->AddTail(this);

	posx = 0;			
	posy = 0;
	xspeed = 0;
	yspeed = 0;
	width = 0;
    height = 0;
	id = -1;				
	exist = 1;          
}

CBaseObj::~CBaseObj()
{
	
}

void CBaseObj::Run()
{
	LoadPic();
	Action();
}