plane.cpp

来自「这是本人完成的一个空战模拟的程序」· C++ 代码 · 共 111 行

CPP
111
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?