ManaPlus
Namespaces | Macros | Functions
beingcommon.h File Reference

(642df39)

#include "fs/virtfs/tools.h"
#include "utils/foreach.h"
#include "utils/xml.h"
#include "localconsts.h"

Go to the source code of this file.

Namespaces

 BeingCommon
 

Macros

#define loadXmlDir(name, function)
 
#define loadXmlDir2(name, function, ext, skipError)
 

Functions

void BeingCommon::readBasicAttributes (BeingInfo *const info, xmlNode *const node, const std::string &hoverCursor)
 
void BeingCommon::readWalkingAttributes (BeingInfo *const info, xmlNode *const node, const int moreBlockFlags)
 
void BeingCommon::readAiAttributes (BeingInfo *const info, xmlNode *const node)
 
void BeingCommon::getIncludeFiles (const std::string &dir, StringVect &list, const std::string &ext)
 
bool BeingCommon::readObjectNodes (xmlNode *const &spriteNode, SpriteDisplay &display, BeingInfo *const currentInfo, const std::string &dbName)
 

Macro Definition Documentation

◆ loadXmlDir

#define loadXmlDir (   name,
  function 
)
Value:
{ \
StringVect listVect; \
name), listVect, ".xml"); \
FOR_EACH (StringVectCIter, itVect, listVect) \
{ \
function(*itVect, SkipError_true); \
} \
}

Definition at line 38 of file beingcommon.h.

◆ loadXmlDir2

#define loadXmlDir2 (   name,
  function,
  ext,
  skipError 
)
Value:
{ \
StringVect listVect; \
VirtFs::getFilesInDir(name, listVect, ext); \
FOR_EACH (StringVectCIter, itVect, listVect) \
{ \
function(*itVect, skipError); \
} \
}

Definition at line 49 of file beingcommon.h.

SkipError_true
const bool SkipError_true
Definition: skiperror.h:29
paths
Configuration paths
Definition: configuration.cpp:55
Configuration::getStringValue
std::string getStringValue(const std::string &key) const
Definition: configuration.cpp:487
VirtFs::getFilesInDir
void getFilesInDir(const std::string &dir, StringVect &list, const std::string &ext)
Definition: tools.cpp:80
StringVectCIter
StringVect::const_iterator StringVectCIter
Definition: stringvector.h:30