ManaPlus
|
#include "resources/db/horsedb.h"
#include "configuration.h"
#include "enums/resources/spritedirection.h"
#include "resources/beingcommon.h"
#include "resources/horseinfo.h"
#include "utils/checkutils.h"
#include "utils/dtor.h"
#include "debug.h"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{horsedb.cpp} | |
Macros | |
#define | loadSprite(name) |
Functions | |
static void | loadDownSprites (xmlNode *const parentNode, HorseInfo *const currentInfo) |
static void | loadUpSprites (xmlNode *const parentNode, HorseInfo *const currentInfo) |
static int | parseDirectionName (const std::string &name) |
static void | loadRiderOffset (xmlNode *const node, HorseInfo *const currentInfo) |
static void | loadOffset (xmlNode *const node, HorseInfo *const currentInfo, const bool isUp) |
Variables | |
HorseInfos | anonymous_namespace{horsedb.cpp}::mHorseInfos |
HorseInfo | anonymous_namespace{horsedb.cpp}::mUnknown |
bool | anonymous_namespace{horsedb.cpp}::mLoaded = false |
#define loadSprite | ( | name | ) |
Definition at line 44 of file horsedb.cpp.
|
static |
Definition at line 238 of file horsedb.cpp.
References for_each_xml_child_node, loadOffset(), and loadSprite.
Referenced by HorseDB::loadXmlFile().
|
static |
Definition at line 208 of file horsedb.cpp.
References HorseOffset::downOffsetX, HorseOffset::downOffsetY, XML::getProperty(), HorseInfo::offsets, parseDirectionName(), reportAlways, HorseOffset::upOffsetX, and HorseOffset::upOffsetY.
Referenced by loadDownSprites(), and loadUpSprites().
|
static |
Definition at line 130 of file horsedb.cpp.
References XML::getProperty(), HorseInfo::offsets, parseDirectionName(), reportAlways, HorseOffset::riderOffsetX, and HorseOffset::riderOffsetY.
Referenced by HorseDB::loadXmlFile().
|
static |
Definition at line 252 of file horsedb.cpp.
References for_each_xml_child_node, loadOffset(), and loadSprite.
Referenced by HorseDB::loadXmlFile().
|
static |
Definition at line 86 of file horsedb.cpp.
References SpriteDirection::DOWN, SpriteDirection::DOWNLEFT, SpriteDirection::DOWNRIGHT, SpriteDirection::LEFT, SpriteDirection::RIGHT, SpriteDirection::UP, SpriteDirection::UPLEFT, and SpriteDirection::UPRIGHT.
Referenced by loadOffset(), and loadRiderOffset().