/* -*-c++-*- * Delta3D Open Source Game and Simulation Engine * Copyright (C) 2006, Alion Science and Technology, BMH Operation * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library 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 Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public License * along with this library; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * William E. Johnson II */ #include #include #include #include #include #include #include #include #include #include #include #include dtCore::RefPtr EntityActorRegistry::TYPE_FLY_SEQUENCE(new dtDAL::ActorType("FlySequence", "FlySequence", "The actor runs the intro movie")); dtCore::RefPtr EntityActorRegistry::TYPE_FIRE_ACTOR(new dtDAL::ActorType("FireActor", "FireActor")); dtCore::RefPtr EntityActorRegistry::TYPE_DDG_ACTOR(new dtDAL::ActorType("DDGActor", "DDGActor")); dtCore::RefPtr EntityActorRegistry::TYPE_PLAYER_ACTOR(new dtDAL::ActorType("PlayerActor", "PlayerActor")); dtCore::RefPtr EntityActorRegistry::TYPE_GAME_LEVEL_ACTOR(new dtDAL::ActorType("GameLevelActor", "GameLevelActor")); dtCore::RefPtr EntityActorRegistry::TYPE_FIRE_HOSE_ACTOR(new dtDAL::ActorType("FireHoseActor", "FireHoseActor")); dtCore::RefPtr EntityActorRegistry::TYPE_FIRE_SUIT_ACTOR(new dtDAL::ActorType("FireSuitActor", "FireSuitActor")); dtCore::RefPtr EntityActorRegistry::TYPE_SCBA_ACTOR(new dtDAL::ActorType("SCBAActor", "SCBAActor")); dtCore::RefPtr EntityActorRegistry::TYPE_PRIMARY_HALON_ACTOR(new dtDAL::ActorType("PrimaryHalonActor", "PrimaryHalonActor")); dtCore::RefPtr EntityActorRegistry::TYPE_SECONDARY_HALON_ACTOR(new dtDAL::ActorType("SecondaryHalonActor", "SecondaryHalonActor")); dtCore::RefPtr EntityActorRegistry::TYPE_HATCH_ACTOR(new dtDAL::ActorType("HatchActor", "HatchActor")); dtCore::RefPtr EntityActorRegistry::TYPE_FUEL_VALVE_ACTOR(new dtDAL::ActorType("FuelValveActor", "FuelValveActor")); dtCore::RefPtr EntityActorRegistry::TYPE_COLLIDABLE_ACTOR(new dtDAL::ActorType("CollidableActor", "CollidableActor")); extern "C" FIRE_FIGHTER_EXPORT dtDAL::ActorPluginRegistry* CreatePluginRegistry() { return new EntityActorRegistry; } /////////////////////////////////////////////////////////////////////////////// extern "C" FIRE_FIGHTER_EXPORT void DestroyPluginRegistry(dtDAL::ActorPluginRegistry *registry) { delete registry; } /////////////////////////////////////////////////////////////////////////////// EntityActorRegistry::EntityActorRegistry() : dtDAL::ActorPluginRegistry("FireFighterActors") { } /////////////////////////////////////////////////////////////////////////////// void EntityActorRegistry::RegisterActorTypes() { mActorFactory->RegisterType(TYPE_FLY_SEQUENCE.get()); mActorFactory->RegisterType(TYPE_FIRE_ACTOR.get()); mActorFactory->RegisterType(TYPE_DDG_ACTOR.get()); mActorFactory->RegisterType(TYPE_PLAYER_ACTOR.get()); mActorFactory->RegisterType(TYPE_GAME_LEVEL_ACTOR.get()); mActorFactory->RegisterType(TYPE_FIRE_HOSE_ACTOR.get()); mActorFactory->RegisterType(TYPE_FIRE_SUIT_ACTOR.get()); mActorFactory->RegisterType(TYPE_SCBA_ACTOR.get()); mActorFactory->RegisterType(TYPE_PRIMARY_HALON_ACTOR.get()); mActorFactory->RegisterType(TYPE_SECONDARY_HALON_ACTOR.get()); mActorFactory->RegisterType(TYPE_HATCH_ACTOR.get()); mActorFactory->RegisterType(TYPE_FUEL_VALVE_ACTOR.get()); mActorFactory->RegisterType(TYPE_COLLIDABLE_ACTOR.get()); }