1 /*
2  * Copyright (C) 2006-2019 Christopho, Solarus - http://www.solarus-games.org
3  *
4  * Solarus is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Solarus is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 #ifndef SOLARUS_TILE_INFO_H
18 #define SOLARUS_TILE_INFO_H
19 
20 #include "solarus/core/Common.h"
21 #include "solarus/core/Rectangle.h"
22 #include <memory>
23 #include <string>
24 
25 namespace Solarus {
26 
27 class TilePattern;
28 class Tileset;
29 
30 /**
31  * \brief Wraps construction parameters of a tile.
32  */
33 struct TileInfo {
34 
35   int layer;
36   Rectangle box;
37   std::string pattern_id;
38   std::shared_ptr<TilePattern> pattern;  /**< nullptr if it does not exist in the tileset. */
39   const Tileset* tileset = nullptr;      /**< nullptr means the tileset of the map. */
40 };
41 
42 }
43 
44 #endif
45