qrailway 0.9
|
00001 #ifndef CRAILWAYCONSTANTS_H 00002 #define CRAILWAYCONSTANTS_H 00003 00004 #include <iostream> 00005 using namespace std; 00006 #include <qfile.h> 00007 #include <qtextstream.h> 00008 00009 const int signalsminimum = 65536; 00010 const int signalsStart = 70000; 00011 const int signalssectionsStart = 70000; 00012 const int signalssectionsStop = 79999; 00013 const int signalsconnectorsStart = 81000; 00014 const int signalsconnectorsStop = 89999; 00015 const int signalsdescriptionsStart = 90000; 00016 const int signalsdescriptionsStop = 90999; 00017 const int signalssignalsStart = 91000; 00018 const int signalssignalsStop = 92999; 00019 const int speedPointsStart = 100000; 00020 00021 // Anzahl Weichen/Reedkontakte/Sektionen, die einem Regler zugeordnet werden können (wichtig für Verwaltung durch Klasse cRegler (cIntelligenz.h)) 00022 const int maxReglerWeichen = 15; 00023 const int maxReglerAnschluesse = 6; 00024 const int maxReglerReedkontakte = 15; 00025 const int maxReglerSektionen = 100; 00026 00027 const char contypeWeiche[] = "W"; 00028 const char contypeDKWeiche[] = "D"; 00029 const char contypeDWWeiche[] = "3"; 00030 const char contypeReed[] = "R"; 00031 const char contypeConnector[] = "C"; 00032 const char contypeHelper[] = "H"; 00033 const char contypeRegler[] = "F"; 00034 const char contypeEnde[] = "E"; 00035 const char contypeSignal[] = "S"; 00036 00037 const char dirLeft[] = "L"; 00038 const char dirRight[] = "R"; 00039 const char dirAcross[] = "L"; 00040 const char dirBend[] = "R"; 00041 const char dirMitte[] = "M"; 00042 const char dirFehler[] = "F"; 00043 00044 const int maxSuchZug = 200; 00046 const int absmaxauftraege = 300; 00047 00048 const int maxGleis = 6; 00049 const int maxBahnhof = 10; 00050 const int maxBefehle = 10; 00051 const int maxRegler = 70; 00052 const int maxTrain = 200; 00053 const int maxSektionen = 700; 00054 const int maxKonnektoren = 1000; 00055 const int maxSignale = 300; 00056 const int maxSignalRegeln = 1000; 00057 const int maxRegel = 5; 00058 const int maxDescriptions = 40; 00059 const int maxReedProZug = 40; 00060 00061 const int maxFensterLokSteuerung = 8; 00062 00063 const int maxGetNaechstenReedkontakt = 100; 00064 00065 const char bilderpfad[] = "/usr/local/share/qrailway/"; 00066 00067 const int ccReedSuchen = 0; 00068 const int ccReedBelegen = 1; 00069 const int ccReedReservieren = 2; 00070 const int ccReedFreigeben = 4; 00071 const int ccReedWeichenErzwingen = 8; 00072 const int ccReedNichtAufAn = 16; 00073 00074 const double qrailwayVersion = 0.90; 00075 00077 const int maxGeschwindigkeitBei2 = 50; 00078 00080 const int manuellMaxReed = 4; 00082 const int manuellMaxGeschwindigkeitFuerDrei = 120; 00083 00084 const int automatikRegler = 6; // max. 6 Regler im voraus reservieren (### wichtig fr Schattenbahnhof in Richtung gegen den Uhrzeigersinn 00085 const int automatikWenigerRegler = 3; // bei geringen Geschwindigkeiten weniger Regler im voraus reduzieren 00086 const int automatikWenigerReglerKmh = 100; // bis 100 km/h liegt eine geringe Geschwindigkeit vor 00087 const int automatikReedNachladen = 4; // bei 5 oder weniger voraus geplanten geplanten reedkontakten werden neue reedkontakte eingelesen 00089 const int automatikMaxFindeKonnektoren = 10; 00091 const int automatikMaxFindeZwischenKonnektoren = 60; 00093 const int automatikMaxFindeWegLaenge = 100; 00094 const int automatikMaxKonnektoren = 25; // hoechstens 20 Reed/Weichen-Konnektoren werden bei der automatischen Steuerung im voraus ueberprueft 00095 00096 #endif