src/supertux/tile_set_parser.hpp

Go to the documentation of this file.
00001 //  SuperTux
00002 //  Copyright (C) 2008 Matthias Braun <matze@braunis.de>,
00003 //                     Ingo Ruhnke <grumbel@gmx.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_SUPERTUX_TILE_SET_PARSER_HPP
00019 #define HEADER_SUPERTUX_SUPERTUX_TILE_SET_PARSER_HPP
00020 
00021 #include <string>
00022 #include <stdint.h>
00023 #include <vector>
00024 
00025 #include "supertux/tile.hpp"
00026 #include "util/reader_fwd.hpp"
00027 
00028 class TileSet;
00029 class Tile;
00030 
00031 class TileSetParser
00032 {
00033 private:
00034   TileSet&    m_tileset;
00035   std::string m_filename;
00036   std::string m_tiles_path;
00037   
00038 public:
00039   TileSetParser(TileSet& tileset, const std::string& filename);
00040   
00041   void parse();
00042 
00043 private:
00044   void parse_tile(const Reader& reader);
00045   void parse_tiles(const Reader& reader);
00046   std::vector<Tile::ImageSpec> parse_tile_images(const Reader& cur);
00047   
00048 private:
00049   TileSetParser(const TileSetParser&);
00050   TileSetParser& operator=(const TileSetParser&);
00051 };
00052 
00053 #endif
00054 
00055 /* EOF */

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