7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
9 // Copyright: See COPYING file that comes with this distribution
18 #include "lispreader.h"
28 std::vector<texture_type> images;
29 std::vector<std::string> filenames;
31 /** solid tile that is indestructable by Tux */
34 /** a brick that can be destroyed by jumping under it */
40 /** Bonusbox, content is stored in \a data */
43 /** Tile is a distro/coin */
46 /** General purpose data attached to a tile (content of a box, type of coin) */
49 /** Id of the tile that is going to replace this tile once it has
50 been collected or jumped at */
63 std::vector<Tile*> tiles;
64 static TileManager* instance_ ;
65 void load_tileset(std::string filename);
68 static TileManager* instance() { return instance_ ? instance_ : instance_ = new TileManager(); }
69 Tile* get(unsigned int id) {
76 // Never return 0, but return the 0th tile instead so that
77 // user code doesn't have to check for NULL pointers all over