imgui user interface implementation

This commit is contained in:
tmj-fstate
2018-08-30 20:41:14 +02:00
parent 8b285834b0
commit 0c062e9041
25 changed files with 1563 additions and 1118 deletions

View File

@@ -33,7 +33,7 @@ double TTrainParameters::WatchMTable(double DistCounter)
return dist;
}
std::string TTrainParameters::NextStop()
std::string TTrainParameters::NextStop() const
{ // pobranie nazwy następnego miejsca zatrzymania
if (StationIndex <= StationCount)
return NextStationName; // nazwa następnego przystanku;
@@ -41,7 +41,7 @@ std::string TTrainParameters::NextStop()
return "[End of route]"; //że niby koniec
}
bool TTrainParameters::IsStop()
bool TTrainParameters::IsStop() const
{ // zapytanie, czy zatrzymywać na następnym punkcie rozkładu
if ((StationIndex < StationCount))
return TimeTable[StationIndex].Ah >= 0; //-1 to brak postoju
@@ -129,7 +129,7 @@ bool TTrainParameters::IsTimeToGo(double hh, double mm)
return false; // dalej nie jechać
}
std::string TTrainParameters::ShowRelation()
std::string TTrainParameters::ShowRelation() const
/*zwraca informację o relacji*/
{
// if (Relation1=TimeTable[1].StationName) and (Relation2=TimeTable[StationCount].StationName)