ManaPlus
Namespaces | Macros | Functions
beingcommon.h File Reference

(986a3bf)

#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); \
} \
}
std::string getStringValue(const std::string &key) const
Configuration paths
void getFilesInDir(const std::string &dir, StringVect &list, const std::string &ext)
Definition: tools.cpp:81
const bool SkipError_true
Definition: skiperror.h:30
StringVect::const_iterator StringVectCIter
Definition: stringvector.h:31

Definition at line 39 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 50 of file beingcommon.h.