plane.cpp
来自「一个小的类似于雷电的射击游戏」· C++ 代码 · 共 34 行
CPP
34 行
#include "StdAfx.h"
#include ".\plane.h"
Plane::Plane(Bitmap *bmp)
:Sprite(bmp)
{
}
Plane::Plane(Bitmap* pBitmap, POINT ptPostion,
POINT ptVelocity, int iZorder,
RECT& rcBounds, BOUNDSACTION ba, float speed)
:Sprite(pBitmap, ptPostion, ptVelocity, iZorder,
rcBounds, ba)
{
m_fSpeed = speed;
m_iLife = 100;
m_bFire = FALSE;
}
//Plane::Plane(Bitmap* pBitmap, POINT ptPostion,
// POINT ptVelocity, int iZorder,
// RECT& rcBounds, BOUNDSACTION ba)
// :Sprite(pBitmap, ptPostion, ptVelocity, iZorder,
// rcBounds, ba)
//{
// m_fSpeed = 0.0;
// m_iLife = 100;
// m_bFire = FALSE;
//}
Plane::~Plane(void)
{
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?