mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 21:49:19 +02:00
LCD Screens in python
Merge with python branch
This commit is contained in:
51
Track.h
51
Track.h
@@ -51,7 +51,7 @@ class TSwitchExtension
|
||||
TSwitchExtension(TTrack *owner, int what);
|
||||
~TSwitchExtension();
|
||||
TSegment *Segments[6]; // dwa tory od punktu 1, pozostałe dwa od 2? Ra 140101: 6 połączeń dla
|
||||
// skrzyżowań
|
||||
// skrzyżowań
|
||||
// TTrack *trNear[4]; //tory dołączone do punktów 1, 2, 3 i 4
|
||||
// dotychczasowe [2]+[2] wskaźniki zamienić na nowe [4]
|
||||
TTrack *pNexts[2]; // tory dołączone do punktów 2 i 4
|
||||
@@ -111,9 +111,18 @@ class TIsolated
|
||||
static TIsolated *__fastcall Find(
|
||||
const AnsiString &n); // znalezienie obiektu albo utworzenie nowego
|
||||
void Modify(int i, TDynamicObject *o); // dodanie lub odjęcie osi
|
||||
bool Busy() { return (iAxles > 0); };
|
||||
static TIsolated *__fastcall Root() { return (pRoot); };
|
||||
TIsolated *__fastcall Next() { return (pNext); };
|
||||
bool Busy()
|
||||
{
|
||||
return (iAxles > 0);
|
||||
};
|
||||
static TIsolated *__fastcall Root()
|
||||
{
|
||||
return (pRoot);
|
||||
};
|
||||
TIsolated *__fastcall Next()
|
||||
{
|
||||
return (pNext);
|
||||
};
|
||||
};
|
||||
|
||||
class TTrack : public Resource
|
||||
@@ -168,7 +177,7 @@ class TTrack : public Resource
|
||||
bool bVisible; // czy rysowany
|
||||
int iAction; // czy modyfikowany eventami (specjalna obsługa przy skanowaniu)
|
||||
float fOverhead; // informacja o stanie sieci: 0-jazda bezprądowa, >0-z opuszczonym i
|
||||
// ograniczeniem prędkości
|
||||
// ograniczeniem prędkości
|
||||
private:
|
||||
double fVelocity; // prędkość dla AI (powyżej rośnie prawdopowobieństwo wykolejenia)
|
||||
public:
|
||||
@@ -185,15 +194,30 @@ class TTrack : public Resource
|
||||
void Init();
|
||||
static TTrack *__fastcall Create400m(int what, double dx);
|
||||
TTrack *__fastcall NullCreate(int dir);
|
||||
inline bool IsEmpty() { return (iNumDynamics <= 0); };
|
||||
inline bool IsEmpty()
|
||||
{
|
||||
return (iNumDynamics <= 0);
|
||||
};
|
||||
void ConnectPrevPrev(TTrack *pNewPrev, int typ);
|
||||
void ConnectPrevNext(TTrack *pNewPrev, int typ);
|
||||
void ConnectNextPrev(TTrack *pNewNext, int typ);
|
||||
void ConnectNextNext(TTrack *pNewNext, int typ);
|
||||
inline double Length() { return Segment->GetLength(); };
|
||||
inline TSegment *__fastcall CurrentSegment() { return Segment; };
|
||||
inline TTrack *__fastcall CurrentNext() { return (trNext); };
|
||||
inline TTrack *__fastcall CurrentPrev() { return (trPrev); };
|
||||
inline double Length()
|
||||
{
|
||||
return Segment->GetLength();
|
||||
};
|
||||
inline TSegment *__fastcall CurrentSegment()
|
||||
{
|
||||
return Segment;
|
||||
};
|
||||
inline TTrack *__fastcall CurrentNext()
|
||||
{
|
||||
return (trNext);
|
||||
};
|
||||
inline TTrack *__fastcall CurrentPrev()
|
||||
{
|
||||
return (trPrev);
|
||||
};
|
||||
TTrack *__fastcall Neightbour(int s, double &d);
|
||||
bool SetConnections(int i);
|
||||
bool Switch(int i, double t = -1.0, double d = -1.0);
|
||||
@@ -222,7 +246,7 @@ class TTrack : public Resource
|
||||
void RenderDyn(); // renderowanie nieprzezroczystych pojazdów (oba tryby)
|
||||
void RenderDynAlpha(); // renderowanie przezroczystych pojazdów (oba tryby)
|
||||
void RenderDynSounds(); // odtwarzanie dźwięków pojazdów jest niezależne od ich
|
||||
// wyświetlania
|
||||
// wyświetlania
|
||||
|
||||
void RaOwnerSet(TSubRect *o)
|
||||
{
|
||||
@@ -244,7 +268,10 @@ class TTrack : public Resource
|
||||
AnsiString IsolatedName();
|
||||
bool IsolatedEventsAssign(TEvent *busy, TEvent *free);
|
||||
double WidthTotal();
|
||||
GLuint TextureGet(int i) { return i ? TextureID1 : TextureID2; };
|
||||
GLuint TextureGet(int i)
|
||||
{
|
||||
return i ? TextureID1 : TextureID2;
|
||||
};
|
||||
bool IsGroupable();
|
||||
int TestPoint(vector3 *Point);
|
||||
void MovedUp1(double dh);
|
||||
|
||||
Reference in New Issue
Block a user