]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/trainai.h
Redesign the train activation system
[r2c2.git] / source / libr2c2 / trainai.h
index 4f9d99cc44465e14b17d96f7eb8aacb7728be998..85c27b794742e456292f18468b5163a8340dceff 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2011  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef LIBR2C2_TRAINAI_H_
 #define LIBR2C2_TRAINAI_H_
 
@@ -44,17 +37,14 @@ public:
 
 protected:
        Train &train;
-       std::string tag;
 
        TrainAI(Train &);
 public:
        virtual ~TrainAI();
 
-       void set_tag(const std::string &);
-       const std::string &get_tag() const { return tag; }
-
        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