3 Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include "common_irrlicht.h"
26 // TileID is supposed to be stored in a u16
30 TILE_NONE, // Nothing shown
49 enum TileSpecialFeature
57 bool operator==(TileCrackParam &other)
59 return progression == other.progression;
70 feature = TILEFEAT_NONE;
73 bool operator==(TileSpec &other)
77 if(feature != other.feature)
79 if(feature == TILEFEAT_NONE)
81 if(feature == TILEFEAT_CRACK)
83 return param.crack == other.param.crack;
90 u16 id; // Id in g_tile_materials, TILE_NONE=none
91 enum TileSpecialFeature feature;
102 void init_tile_texture_paths();
104 const char * tile_texture_path_get(u32 i);
106 // Initializes g_tile_materials
107 void tile_materials_preload(IrrlichtWrapper *irrlicht);
109 video::SMaterial & tile_material_get(u32 i);