Commit 0fcfa9ed authored by KTKadyshev's avatar KTKadyshev
Browse files

Upload New File

parent 2cc75688
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
class TAObject
{
public:
double x, y;
bool f;
public:
TAObject(double x_, double y_);
virtual ~TAObject() {}
};
class TAirport;
class TLA : public TAObject
{
public:
double xc, yc, R, fi, V;
bool landing;
public:
TLA(double x_, double y_, double V_, double xc_, double yc_);
public:
virtual void move(double t, int a) = 0;
virtual int computeA(const TAirport & airport) = 0;
virtual bool computeLanding(const TAirport& airport) = 0;
};
class TAircraft : public TLA
{
public:
TAircraft(double x_, double y_, double V_, double xc_, double yc_);
virtual void move(double t, int a);
virtual int computeA(const TAirport& airport);
virtual bool computeLanding(const TAirport& airport);
};
class THelicopter : public TLA
{
public:
THelicopter(double x_, double y_, double V_, double xc_, double yc_);
virtual void move(double t, int a);
virtual int computeA(const TAirport& airport);
virtual bool computeLanding(const TAirport& airport);
};
typedef TLA* PLA;
class TAirport : public TAObject
{
public:
double l;
PLA* LA;
public:
TAirport(double x_, double y_, double l_);
~TAirport();
void Do(double t0, double tk);
private:
};
const double DT = 0.5;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment