Steam Fort 0.5

src/map.hpp

Go to the documentation of this file.
00001 /*********************************************************************
00002  * Copyright 2011 Bartek thindil Jasicki
00003  *
00004  *  This file is part of Steam Fort.
00005  *
00006  *  Steam Fort is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * Steam Fort is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with Steam Fort.  If not, see <http://www.gnu.org/licenses/>.
00018 *********************************************************************/
00019 #ifndef MAP_HPP
00020 #define MAP_HPP
00021 #include "libtcod.hpp"
00022 
00026 struct Cell {
00027   int ch;
00028   TCODColor color;
00029   TCODColor bgcolor;
00030   bool walkable;
00031   bool transparent;
00032   int mob;
00033   TCODList<int> items;
00034   TCODList<int> hitems;
00035   int building;
00036   int landtype;
00037   float height;
00038   bool visited;
00039 };
00040 
00041 void update_map_mob(int x, int y, int mob);
00042 void update_map_item(int x, int y, int item, bool remove = false);
00043 
00044 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines