cprojectile.h
来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C头文件 代码 · 共 34 行
H
34 行
//Tanks
//Copyright John Manslow
//29/09/2001
#ifndef _CProjectile_
#define _CProjectile_
class CProjectile
{
public:
CProjectile(
const double, //Initial x position of the projectile
const double, //Initial y position of the projectile
const double, //Initial x component of its velocity
const double //Initial y component of its velocity
);
~CProjectile();
//Called once per time step to update the projectile's velocity and location
void TimeStep(const double);
//The projectile's current position
double dxPosition,dyPosition;
//Its current velocity
double dSpeedx,dSpeedy;
//Its previous position
double dPreviousxPosition,dPreviousyPosition;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?