]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainpanel.h
Remove status from Train and turn it into a TrainAI
[r2c2.git] / source / engineer / trainpanel.h
index d74ccbf88695e40c960a93c72975f9de31d33b97..ba65fb886f351afeed2b03790e4e8527318a224c 100644 (file)
@@ -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 <msp/gltk/toggle.h>
 #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 &);