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
47 enum TileSpecialFeature
55 bool operator==(TileCrackParam &other)
57 return progression == other.progression;
68 feature = TILEFEAT_NONE;
71 bool operator==(TileSpec &other)
75 if(feature != other.feature)
77 if(feature == TILEFEAT_NONE)
79 if(feature == TILEFEAT_CRACK)
81 return param.crack == other.param.crack;
88 u16 id; // Id in g_tile_materials, TILE_NONE=none
89 enum TileSpecialFeature feature;
96 // A mapping from tiles to names of cached textures
97 extern const char * g_tile_texture_names[TILES_COUNT];
99 // A mapping from tiles to materials
100 // Initialized at run-time.
101 extern video::SMaterial g_tile_materials[TILES_COUNT];
107 // Initializes g_tile_materials
108 void tile_materials_preload(TextureCache &cache);