youbian.cpp

来自「小球打砖块」· C++ 代码 · 共 39 行

CPP
39
字号
// YouBian.cpp: implementation of the YouBian class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "mqgGAME.h"
#include "YouBian.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

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

YouBian::YouBian()
{
	cr.left=550;
	cr.top=5;
	cr.right=555;
	cr.bottom=440;
}

YouBian::~YouBian()
{

}

void YouBian::IsZhuang()
{
	RECT tt;
	if(IntersectRect(&tt,&cr,&pBall->cr))
		pBall->ZhuanXiang(1);

}

⌨️ 快捷键说明

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