ManaPlus
Namespaces | Typedefs | Functions | Variables
statuseffectdb.cpp File Reference

(986a3bf)

#include "resources/db/statuseffectdb.h"
#include "configuration.h"
#include "statuseffect.h"
#include "utils/checkutils.h"
#include "resources/beingcommon.h"
#include "debug.h"

Go to the source code of this file.

Namespaces

 anonymous_namespace{statuseffectdb.cpp}
 

Typedefs

typedef std::map< int, StatusEffect * > anonymous_namespace{statuseffectdb.cpp}::IdToEffectMap[2]
 

Functions

static void unloadMap (std::map< int, StatusEffect * > &map)
 

Variables

bool anonymous_namespace{statuseffectdb.cpp}::mLoaded = false
 
int anonymous_namespace{statuseffectdb.cpp}::fakeId = 10000
 
IdToEffectMap anonymous_namespace{statuseffectdb.cpp}::statusEffects
 
OptionsMap anonymous_namespace{statuseffectdb.cpp}::optionToIdMap
 
OptionsMap anonymous_namespace{statuseffectdb.cpp}::opt1ToIdMap
 
OptionsMap anonymous_namespace{statuseffectdb.cpp}::opt2ToIdMap
 
OptionsMap anonymous_namespace{statuseffectdb.cpp}::opt3ToIdMap
 

Function Documentation

◆ unloadMap()

static void unloadMap ( std::map< int, StatusEffect * > &  map)
static

Definition at line 178 of file statuseffectdb.cpp.

179 {
180  for (std::map<int, StatusEffect *>::iterator it = map.begin();
181  it != map.end(); ++it)
182  {
183  delete (*it).second;
184  }
185 
186  map.clear();
187 }

Referenced by StatusEffectDB::unload().