// $Id: world_dot.hpp 2986 2007-08-17 16:20:09Z grumbel $ // // Pingus - A free Lemmings clone // Copyright (C) 2006 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. #ifndef HEADER_PINGUS_WORLDMAP_WORLD_DOT_HXX #define HEADER_PINGUS_WORLDMAP_WORLD_DOT_HXX #include "dot.hpp" namespace WorldMapNS { /** Represents a WorldMap dot on a MetaMap */ class WorldDot : public Dot { private: bool is_accessible; bool is_finished; public: WorldDot(FileReader reader); /** Draw stuff that should be displayed if the mouse is over the dot */ virtual void draw_hover(DrawingContext& gc) { UNUSED_ARG(gc); } virtual void draw(DrawingContext& gc) { UNUSED_ARG(gc); } virtual void update(float delta) { UNUSED_ARG(delta); } Vector3f get_pos() { return pos; } virtual void on_click() { } virtual bool finished() { return is_finished; } virtual bool accessible() { return is_accessible; } /** makes the node accessible */ virtual void unlock(); private: WorldDot (const WorldDot&); WorldDot& operator= (const WorldDot&); }; // WorldDot class } // WorldMapNS namespace #endif /* EOF */