1 /*
2  * Copyright (C) 2014-2018 Christopho, Solarus - http://www.solarus-games.org
3  *
4  * Solarus Quest Editor 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 Quest Editor 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 #include "entities/chest.h"
18 
19 namespace SolarusEditor {
20 
21 /**
22  * @brief Constructor.
23  * @param map The map containing the entity.
24  * @param index Index of the entity in the map.
25  */
Chest(MapModel & map,const EntityIndex & index)26 Chest::Chest(MapModel& map, const EntityIndex& index) :
27   EntityModel(map, index, EntityType::CHEST) {
28 
29   set_origin(QPoint(8, 13));
30   set_traversable(false);
31 }
32 
33 }
34