X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fserver.h;h=efb3b3a2472726ab8bfdce9ac5427c35a9825402;hb=1d240350c24138e173eac660d31d56c7b8503b09;hp=febd567598e0e71def517c7a9743bfdc77706994;hpb=64feb0c70888bfc7c11b05dcc71be495f255c039;p=r2c2.git diff --git a/source/network/server.h b/source/network/server.h index febd567..efb3b3a 100644 --- a/source/network/server.h +++ b/source/network/server.h @@ -6,7 +6,7 @@ #include #include #include "libr2c2/layout.h" -#include "libr2c2/trainstatus.h" +#include "libr2c2/trainai.h" #include "packets.h" #include "protocol.h" @@ -45,6 +45,8 @@ private: public: Server(Layout &); + ~Server(); + void use_event_dispatcher(Msp::IO::EventDispatcher &); private: void incoming_connection(); @@ -54,8 +56,7 @@ private: void train_added(Train &); void train_control_changed(const Train &, const std::string &, float); void train_function_changed(const Train &, unsigned, bool); - void train_route_changed(const Train &, const Route *); - void train_status_changed(const Train &, const std::string &); + void train_ai_event(const Train &, TrainAI &, const TrainAI::Message &); template void send(const P &);