#include <msp/gltk/resources.h>
#include <msp/gltk/root.h>
#include "libr2c2/catalogue.h"
+#include "libr2c2/driver.h"
#include "libr2c2/train.h"
#include "3d/layout.h"
#include "3d/overlay.h"
#include "3d/path.h"
+#include "3d/trackchain.h"
#include "3d/view.h"
#include "network/server.h"
#include "options.h"
Msp::Input::Mouse mouse;
Msp::GLtk::Resources ui_res;
Msp::GLtk::Root *root;
+ Msp::GLtk::Arrangement *root_arrangement;
+ bool import_active;
R2C2::Catalogue catalogue;
R2C2::Layout layout;
std::list<TrainView *> train_views;
Msp::Time::TimeStamp status_timeout;
R2C2::Vector pointer;
+ std::list<R2C2::TrackChain3D *> emergencies;
+ Msp::Time::TimeStamp emergency_blink_timeout;
+ unsigned emergency_blink_state;
public:
Engineer(int argc, char **argv);
void button_press(unsigned);
void axis_motion(unsigned, float, float);
void view_all();
- void sensor_event(unsigned, bool);
- void block_reserved(const R2C2::Block &, const R2C2::Train *);
R2C2::Object *pick_object(const R2C2::Vector &);
+ void emergency(R2C2::Block *, const std::string &);
+ void halt_event(bool);
+ void locomotive_detected(const R2C2::Driver::DetectedLocomotive &);
+ void import_finished(int);
void train_added(R2C2::Train &);
void process_new_train(R2C2::Train &);
virtual void sighandler(int);