16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 00:09:18 +02:00

build 170916. mouse support for pantograph valve and compressor, minor tweak in ai route selection for cars

This commit is contained in:
tmj-fstate
2017-09-17 03:18:34 +02:00
parent bc1375e83c
commit 6e8fbf7362
8 changed files with 74 additions and 37 deletions

View File

@@ -209,6 +209,15 @@ public:
SwitchExtension ?
SwitchExtension->CurrentIndex :
-1); };
// returns number of different routes possible to take from given point
// TODO: specify entry point, number of routes for switches can vary
inline
int
RouteCount() const {
return (
SwitchExtension != nullptr ?
SwitchExtension->iRoads - 1 :
1 ); }
void Load(cParser *parser, Math3D::vector3 pOrigin, std::string name);
bool AssignEvents(TEvent *NewEvent0, TEvent *NewEvent1, TEvent *NewEvent2);
bool AssignallEvents(TEvent *NewEvent0, TEvent *NewEvent1, TEvent *NewEvent2);