Use Singleton base class.

I.e. make sure that all objects have a defined life time. This requires
that we actually set up and tear down the singletons.
This commit is contained in:
Erik Ogenvik 2018-04-25 20:09:14 +02:00
parent f283ffbafb
commit 7ae19d5038
89 changed files with 664 additions and 1041 deletions

View file

@ -74,6 +74,10 @@ class TestWorld : public BaseWorld {
}
virtual void message(const Operation & op, LocatedEntity & ent) {
}
virtual void messageToClients(const Atlas::Objects::Operation::RootOperation &) {
}
virtual LocatedEntity * findByName(const std::string & name) { return 0; }
virtual LocatedEntity * findByType(const std::string & type) { return 0; }
virtual void addPerceptive(LocatedEntity *) { }