Example #1
0
void StatusEffect::unload()
{
    if (!mLoaded)
        return;

    unloadMap(statusEffects[0]);
    unloadMap(statusEffects[1]);
    unloadMap(stunEffects[0]);
    unloadMap(stunEffects[1]);

    mLoaded = false;
}
Example #2
0
void StatusEffectDB::unload()
{
    if (!mLoaded)
        return;

    logger->log1("Unloading status effect database...");

    fakeId = 10000;
    unloadMap(statusEffects[0]);
    unloadMap(statusEffects[1]);

    optionToIdMap.clear();
    opt1ToIdMap.clear();
    opt2ToIdMap.clear();
    opt3ToIdMap.clear();

    mLoaded = false;
}
Example #3
0
	void Map::unload()
	{
		unloadMap();
	}
Example #4
0
void MapManager::switchToMap(const std::string filepath)
{
    unloadMap(currentlyDisplayedMap);
    MapManager::getCurrentMap()->specialTileContainer.clear();
    loadMap(filepath);
}