// $Id$
-//
+//
// SuperTux
// Copyright (C) 2004 Tobias Glaesser <tobi.web@gmx.de>
+// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
-//
+//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#include <iostream>
#include <stdint.h>
#include <assert.h>
-#include "msg.hpp"
+#include "log.hpp"
#include "tile.hpp"
struct TileGroup
std::set<TileGroup> tilegroups;
std::string tiles_path;
-
+
void load_tileset(std::string filename);
public:
assert(id < tiles.size());
Tile* tile = tiles[id];
if(!tile) {
- msg_warning << "Invalid tile: " << id << std::endl;
+ log_warning << "Invalid tile: " << id << std::endl;
return tiles[0];
}
if(tile->images.size() == 0 && tile->imagespecs.size() != 0)
tile->load_images(tiles_path);
-
+
return tile;
}
}
};
+extern TileManager* tile_manager;
+
#endif