⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cprojectile.h

📁 游戏编程AI源码
💻 H
字号:
//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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -