ManaPlus
Macros | Variables
spellmanager.cpp File Reference

(986a3bf)

#include "spellmanager.h"
#include "configuration.h"
#include "textcommand.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
#include "const/spells.h"
#include "gui/windows/chatwindow.h"
#include "net/playerhandler.h"
#include "resources/db/commandsdb.h"
#include "utils/dtor.h"
#include "utils/foreach.h"
#include <sstream>
#include "debug.h"

Go to the source code of this file.

Macros

#define setOrDel(str, method)
 

Variables

SpellManagerspellManager = 0
 

Macro Definition Documentation

◆ setOrDel

#define setOrDel (   str,
  method 
)
Value:
const std::string var##method = spell->method(); \
if (!var##method.empty()) \
serverConfig.setValue((str) + toString(i), var##method); \
else \
serverConfig.deleteKey((str) + toString(i))
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:1774

Definition at line 322 of file spellmanager.cpp.

Variable Documentation

◆ spellManager

SpellManager* spellManager = 0