📄 ch21p1_bullet.h
字号:
#ifndef CBULLET_INCLUDED
#define CBULLET_INCLUDED
#include <D3D8.h>
#include <D3DX8.h>
#include <D3DX8math.h>
#include "CommonFuncs.h"
#include "Camera.h"
class CBullet
{
public:
CBullet() {
m_vPos = D3DXVECTOR3(0,0,0); m_vVelocity = D3DXVECTOR3(0,0,0);
}
CBullet(D3DXVECTOR3 vPos, D3DXVECTOR3 vVelocity) {
m_vPos = vPos; m_vVelocity = vVelocity;
}
virtual ~CBullet() { }
D3DXVECTOR3 &Pos() { return(m_vPos); }
D3DXVECTOR3 &Velocity() { return(m_vVelocity); }
protected:
D3DXVECTOR3 m_vPos;
D3DXVECTOR3 m_vVelocity;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -