X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrainai.h;h=b3412c5442e18b3b7fffe4ac516d2b58b9558a2c;hb=74f8c3beba5a6947a523119e3f26cf745725b511;hp=b040493ce1ea5d1c903745ddd60cbbda528dc83a;hpb=dec294d40194a640e7b4bccf20dd1baa4a87038c;p=r2c2.git diff --git a/source/libr2c2/trainai.h b/source/libr2c2/trainai.h index b040493..b3412c5 100644 --- a/source/libr2c2/trainai.h +++ b/source/libr2c2/trainai.h @@ -16,8 +16,6 @@ Base class for train AIs. AIs can help the user in various ways, ranging from automatically stopping the train at the end of allocated track to autonomously running a train. - -XXX The timestamp should be removed from tick, but Timetable depends on it */ class TrainAI { @@ -43,7 +41,8 @@ public: virtual ~TrainAI(); virtual void message(const Message &) { } - virtual void tick(const Msp::Time::TimeStamp &, const Msp::Time::TimeDelta &) { } + virtual void tick(const Msp::Time::TimeDelta &) = 0; + virtual bool has_intent_to_move() const { return false; } }; } // namespace R2C2