Скачиваний:
52
Добавлен:
01.05.2014
Размер:
1.5 Кб
Скачать
#ifndef _PlList_h
#define _PlList_h

#include "Plelem.h"


class PlList
{
  Plelem* head;			//Ukazatel' na golovu
  Plelem* cur;            	//Ukazatel' na tek element
  int Nel;			//Chislo elementov

public:

				//-Proverka pustoti
  int Empty() const;


  //-Konstruktor
  PlList();            	//Sozdanie spiska


  //-Selectori

  unsigned int getNomp(int nom) const;
  double getXp(int nom) const;		//Planeti
  double getYp(int nom) const;
  double getA(int nom) const;
  double getXpt(int nom,double t) const;
  double getYpt(int nom,double t) const;
  int getV(int nom) const;
  void PrintS(int nom,double t) const;	//Situaciyu
  int  getNel() const;			//Vozvrat kolichestva elementov
  void PrintSys(double t);		//Vivod spiska na ekran
  Message SendP(int nom,Adress _Pol,double _Msg) const;
  Adress getAdr(int nom) const;


  //-Modifikatori

  void setV(int nom,int _V);
  void setLmax(int nom,int _Lmax);		//Orbiti
  void setLmin(int nom,int _Lmin);
  void Revol(int nom,double dFi);
  void Masht(int nom,double dN);
  void Move(int nom,double dX,double dY);
  void RevolO(int nom,double dFi);
  void MashtO(int nom,double dN);
  void MoveO(int nom,double dX,double dY);

  void goPred();         	//Perehod na predidushiy element
  void goHead(); 		//Perehod na golovu spiska
  void insLast(Planeta* _pl);	//Vstavka v konec
  void DelPlanet(int nom);		//Udalenie planeti N mom
  unsigned int ReceiveReg(Message _Msg);

};
#endif
Соседние файлы в папке Kurs3