X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainpanel.h;h=ba65fb886f351afeed2b03790e4e8527318a224c;hb=34f8bf04e4bdffefeceea59b186386b51c542b9d;hp=d74ccbf88695e40c960a93c72975f9de31d33b97;hpb=1ff06c5bc46a677fa389ef86c6b26664368f1653;p=r2c2.git diff --git a/source/engineer/trainpanel.h b/source/engineer/trainpanel.h index d74ccbf..ba65fb8 100644 --- a/source/engineer/trainpanel.h +++ b/source/engineer/trainpanel.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of R²C² -Copyright © 2006-2010 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -16,6 +16,7 @@ Distributed under the GPL #include #include "libr2c2/route.h" #include "libr2c2/train.h" +#include "libr2c2/trainstatus.h" class Engineer; @@ -24,6 +25,7 @@ class TrainPanel: public Msp::GLtk::Panel, public sigc::trackable private: Engineer &engineer; R2C2::Train &train; + R2C2::TrainStatus status; Msp::GLtk::Panel *pnl_basic; Msp::GLtk::Panel *pnl_extra; Msp::GLtk::Button *btn_expand; @@ -43,7 +45,7 @@ public: void expand(bool = true); private: - void train_control_changed(const std::string &, float); + void ai_event(const R2C2::TrainAI::Message &); void train_function_changed(unsigned, bool); void train_route_changed(const R2C2::Route *); void train_status_changed(const std::string &);