src/worldmap/special_tile.hpp

Go to the documentation of this file.
00001 //  SuperTux
00002 //  Copyright (C) 2004 Ingo Ruhnke <grumbel@gmx.de>
00003 //  Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
00004 //
00005 //  This program is free software: you can redistribute it and/or modify
00006 //  it under the terms of the GNU General Public License as published by
00007 //  the Free Software Foundation, either version 3 of the License, or
00008 //  (at your option) any later version.
00009 //
00010 //  This program is distributed in the hope that it will be useful,
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 //  GNU General Public License for more details.
00014 //
00015 //  You should have received a copy of the GNU General Public License
00016 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 
00018 #ifndef HEADER_SUPERTUX_WORLDMAP_SPECIAL_TILE_HPP
00019 #define HEADER_SUPERTUX_WORLDMAP_SPECIAL_TILE_HPP
00020 
00021 #include <memory>
00022 #include <string>
00023 
00024 #include "math/vector.hpp"
00025 #include "sprite/sprite_ptr.hpp"
00026 #include "supertux/game_object.hpp"
00027 #include "util/reader_fwd.hpp"
00028 
00029 namespace worldmap {
00030 
00031 class SpecialTile : public GameObject
00032 {
00033 public:
00034   SpecialTile(const Reader& lisp);
00035   virtual ~SpecialTile();
00036 
00037   virtual void draw(DrawingContext& context);
00038   virtual void update(float elapsed_time);
00039 
00040 public:
00041   Vector pos;
00042 
00044   SpritePtr sprite;
00045 
00047   std::string map_message;
00048   bool passive_message;
00049 
00051   std::string script;
00052 
00054   bool invisible;
00055 
00057   bool apply_action_north;
00058   bool apply_action_east;
00059   bool apply_action_south;
00060   bool apply_action_west;
00061 };
00062 
00063 } // namespace worldmap
00064 
00065 #endif
00066 
00067 /* EOF */

Generated on Mon Jun 9 03:38:24 2014 for SuperTux by  doxygen 1.5.1