summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-12 17:07:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-12 17:07:09 +0300
commit566ae30ff94caf6c92fc7d64f021b567933f8a60 (patch)
treeeae43b8899444f99a97fdd00bc5df8a117c316e9 /src/resources/db
parent247418a3ec0b50479c7bac80322202b01527ae61 (diff)
downloadmanaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.gz
manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.bz2
manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.xz
manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.zip
fix code style.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/itemdb.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 5c435f35e..7dfecb6ae 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -603,7 +603,7 @@ const ItemDB::ItemInfos &ItemDB::getItemInfos()
return mItemInfos;
}
-int parseSpriteName(const std::string &name)
+static int parseSpriteName(const std::string &name)
{
int id = -1;
if (name == "race" || name == "type")
@@ -667,7 +667,7 @@ int parseSpriteName(const std::string &name)
return id;
}
-int parseDirectionName(const std::string &name)
+static int parseDirectionName(const std::string &name)
{
int id = -1;
if (name == "down")
@@ -725,7 +725,7 @@ int parseDirectionName(const std::string &name)
return id;
}
-void loadSpriteRef(ItemInfo *const itemInfo, const XmlNodePtr node)
+static void loadSpriteRef(ItemInfo *const itemInfo, const XmlNodePtr node)
{
const std::string gender = XML::getProperty(node, "gender", "unisex");
if (!node->xmlChildrenNode)
@@ -743,7 +743,7 @@ void loadSpriteRef(ItemInfo *const itemInfo, const XmlNodePtr node)
itemInfo->setSprite(filename, Gender::OTHER, race);
}
-void loadSoundRef(ItemInfo *const itemInfo, const XmlNodePtr node)
+static void loadSoundRef(ItemInfo *const itemInfo, const XmlNodePtr node)
{
const std::string event = XML::getProperty(node, "event", "");
const std::string filename = reinterpret_cast<const char*>(
@@ -763,8 +763,8 @@ void loadSoundRef(ItemInfo *const itemInfo, const XmlNodePtr node)
}
}
-void loadFloorSprite(SpriteDisplay *const display,
- const XmlNodePtrConst floorNode)
+static void loadFloorSprite(SpriteDisplay *const display,
+ const XmlNodePtrConst floorNode)
{
for_each_xml_child_node(spriteNode, floorNode)
{
@@ -785,8 +785,8 @@ void loadFloorSprite(SpriteDisplay *const display,
}
}
-void loadReplaceSprite(ItemInfo *const itemInfo,
- const XmlNodePtr replaceNode)
+static void loadReplaceSprite(ItemInfo *const itemInfo,
+ const XmlNodePtr replaceNode)
{
const std::string removeSprite = XML::getProperty(
replaceNode, "sprite", "");
@@ -917,9 +917,9 @@ void loadReplaceSprite(ItemInfo *const itemInfo,
}
}
-void loadOrderSprite(ItemInfo *const itemInfo,
- const XmlNodePtr node,
- const bool drawAfter)
+static void loadOrderSprite(ItemInfo *const itemInfo,
+ const XmlNodePtr node,
+ const bool drawAfter)
{
const int sprite = parseSpriteName(XML::getProperty(node, "name", ""));
const int priority = XML::getProperty(node, "priority", 0);