ManaPlus
Namespaces | Functions | Variables
commandsdb.cpp File Reference

(986a3bf)

#include "resources/db/commandsdb.h"
#include "configuration.h"
#include "logger.h"
#include "textcommand.h"
#include "resources/beingcommon.h"
#include "debug.h"

Go to the source code of this file.

Namespaces

 anonymous_namespace{commandsdb.cpp}
 

Functions

static CommandTargetT parseTarget (const std::string &text)
 

Variables

CommandsMap anonymous_namespace{commandsdb.cpp}::mCommands
 
bool anonymous_namespace{commandsdb.cpp}::mLoaded = false
 

Function Documentation

◆ parseTarget()

static CommandTargetT parseTarget ( const std::string &  text)
static

Definition at line 53 of file commandsdb.cpp.

54 {
55  if (text == "allow target")
57  else if (text == "need target")
59  else
61 }

References CommandTarget::AllowTarget, CommandTarget::NeedTarget, and CommandTarget::NoTarget.

Referenced by CommandsDB::loadXmlFile().