// Cyphesis Online RPG Server and AI Engine // Copyright (C) 2000,2001 Alistair Riddoch // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software Foundation, // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA // $Id: PersistantThingFactory.cpp,v 1.17 2007-07-08 23:45:12 alriddoch Exp $ #include #include "PersistantThingFactory_impl.h" #include "Persistor.h" #include "ScriptFactory.h" #include "EntityFactory.h" #include "rulesets/Entity.h" #include "rulesets/Thing.h" #include "rulesets/Character.h" #include "rulesets/Creator.h" #include "rulesets/Plant.h" #include "rulesets/Structure.h" #include "rulesets/Stackable.h" #include "rulesets/World.h" #include "common/log.h" FactoryBase::FactoryBase() : m_scriptFactory(0) { } FactoryBase::~FactoryBase() { if (m_scriptFactory != 0) { delete m_scriptFactory; } } template <> World * ThingFactory::newPersistantThing(const std::string & id, long intId, PersistorBase ** p) { return 0; } template<> int ThingFactory::populate(Entity & e) { EntityFactory::instance()->addStatisticsScript((Character &)e); return 0; } template<> ThingFactory::ThingFactory() { // These constructors register the tables with the database layer that // we can use to restore the world state even though persistence is // disabled. if (database_flag) { Persistor tmp_entity_persistor; Persistor tmp_world_persistor; } } template class PersistorConnection; template class PersistorConnection; template class PersistorConnection; template class PersistorConnection; template class PersistorConnection; template class PersistorConnection; template class PersistorConnection; template class PersistorConnection; template class PersistantThingFactory; template class PersistantThingFactory; template class PersistantThingFactory; template class PersistantThingFactory; template class PersistantThingFactory; template class PersistantThingFactory; template class PersistantThingFactory; template class ForbiddenThingFactory; template class ThingFactory; template class ThingFactory; template class ThingFactory; template class ThingFactory; template class ThingFactory; template class ThingFactory; template class ThingFactory;