#ifndef TrajH
#define TrajH 1


#define EndStat "Aeroport"

#include "Stations.h"
#include "ConMatrix.h"


struct Traj {
 int c;
 int time;
 int *point;
};



static CMatrix sm, m;
static int size_m = 0, data_time = 0, trajlen = 0;

static int start_p, end_p;

static struct Traj cur_traj, prev_traj;  // NOT STATIC!



void InitTraj(struct Traj *t);
void DestTraj(struct Traj *t);
void AddPointTraj(struct Traj *t, int p);
int FindTrajTime(struct Traj *t, CMatrix m1);
void PrintTraj(struct Traj *t, struct Stations *stat);
char Deadlock(int p);
char FindTraj(int p);

struct Traj BaseFunc(struct Stations *stat, int sel, int t, CMatrix m1, CMatrix sm1);

#endif 