// $Id: worldobj.cpp 2986 2007-08-17 16:20:09Z grumbel $ // // Pingus - A free Lemmings clone // Copyright (C) 1999 Ingo Ruhnke // // 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., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. #include #include #include "worldobj.hpp" #include "display/scene_context.hpp" World* WorldObj::world; void WorldObj::set_world(World* arg_world) { world = arg_world; } WorldObj::WorldObj(const FileReader& reader) { reader.read_string("id", id); } WorldObj::WorldObj() { // z_pos = 0; } WorldObj::~WorldObj() { } void WorldObj::on_startup() { // do nothing } void WorldObj::update() { // do nothing } void WorldObj::draw_offset(int /*x*/, int /*y*/, float /*s*/) { // do nothing std::cout << "WorldObj::draw_offset(): not implemented, probally a bug: " << typeid(*this).name () << std::endl; } void WorldObj::draw_smallmap(SmallMap* smallmap) { UNUSED_ARG(smallmap); } void WorldObj::draw (SceneContext& gc) { // FIXME: I need some docu on the meaning of get_x_offset() and co. std::cout << "WorldObj:draw(SceneContext): Using compat-wrapper: " << typeid(*this).name () << std::endl; #if 0 // FIXME: draw_offset (static_cast(gc.get_x_offset () + gc.get_width ()/2), static_cast(gc.get_y_offset () + gc.get_height ()/2), gc.get_zoom ()); #endif } /* EOF */