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

📄 plane.cpp

📁 这是本人完成的一个空战模拟的程序
💻 CPP
字号:
// Plane.cpp: implementation of the Plane class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "airbattle.h"
#include "Plane.h"
#include "math.h"

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

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


int m_seed=10;

Plane::Plane()
{

}

Plane::~Plane()
{

}

void Plane::SetPlane(const point *p,double rate,planestate state)
{
	CurrentPosition.x=p->x;
	CurrentPosition.y=p->y;
	CurrentPosition.z=p->z;
	AirRate=rate;
	State=state;
}

point& Plane::GetPosition()
{
	return CurrentPosition;
}

void Plane::AirDisplay()
{
}

void Plane::AirUpdate()
{

}



void AirMass::CreateAir()
{
	Plane *m_Plane=new Plane;
	m_Plane->SetPlane(&AirDromePosition,random(AIRRATEDOWN,AIRRATEUP,m_seed),flying);
}

point Missle::GetCurrentMisslePosition()
{
	point p;
	return p;
}

void Missle::MissleDisplay()
{
}

void Missle::MissleUpdate()
{
}

void Missle::SetCurrentMisslePosition()
{
}

void MissleBase::CreateMissle()
{
}

void Radar::RadarUpdate()
{
}

point Target::GetTarget()
{
	point p;
	return p;
}

Target::Target(point p)
{
}

point Track::CalculatePosition(double rate,double time,point start)
{
	point p;
	return p;
}

Track::Track(point x,point y)
{
}


⌨️ 快捷键说明

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