/*
* The Mana Server
* Copyright (C) 2004-2010 The Mana World Development Team
* Copyright (C) 2010-2011 The Mana Development Team
*
* This file is part of The Mana Server.
*
* The Mana Server is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* The Mana Server is distributed in the hope that it will be useful,
* 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 The Mana Server. If not, see .
*/
#include "game-server/mapmanager.h"
#include "common/resourcemanager.h"
#include "common/defines.h"
#include "game-server/map.h"
#include "game-server/mapcomposite.h"
#include "utils/logger.h"
#include
/**
* List of all the game maps, be they present or not on this server.
*/
static MapManager::Maps maps;
const MapManager::Maps &MapManager::getMaps()
{
return maps;
}
void MapManager::initialize()
{
}
/**
* Destroys all maps.
*/
void MapManager::deinitialize()
{
for (Maps::iterator i = maps.begin(), i_end = maps.end(); i != i_end; ++i)
{
delete i->second;
}
maps.clear();
}
/**
* Prepare map manager for a reload.
*/
void MapManager::reload()
{
// TODO: this method needs proper map reloading
LOG_ERROR("MapManager::reload() not implemented yet");
}
/**
* Read a