/* base/cargopod.cc This file is part of the Osirion project and is distributed under the terms and conditions of the GNU General Public License version 2 */ #include "base/cargopod.h" #include "base/game.h" namespace game { CargoPod::CargoPod() : EntityDynamic() { entity_moduletypeid = cargopod_enttype; set_name("Cargo pod"); set_label("cargopod"); set_flag(core::Entity::KeepAlive); set_keepalive_timeout(Game::g_keepalive ? Game::g_keepalive->value() : 0); // FIXME hardcoded modelname set_modelname("maps/cargo/pod"); set_mass(radius()); // activate physics reset(); const float damp = Game::g_damping->value(); body()->setDamping(damp, damp); } CargoPod::~CargoPod() { } } // namespace game