summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-16 17:37:16 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-16 17:37:16 +0300
commit037ab342be37dafbbe97df3235c35721664e808f (patch)
treed276f0885dc0074424d0cd0af030e78065c0a6c3 /src/resources/spritedef.h
parent88030a157a1f7a44368946324fb01642d8d3f83f (diff)
downloadmanaverse-037ab342be37dafbbe97df3235c35721664e808f.tar.gz
manaverse-037ab342be37dafbbe97df3235c35721664e808f.tar.bz2
manaverse-037ab342be37dafbbe97df3235c35721664e808f.tar.xz
manaverse-037ab342be37dafbbe97df3235c35721664e808f.zip
improve spritedef class.
Diffstat (limited to 'src/resources/spritedef.h')
-rw-r--r--src/resources/spritedef.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h
index 02090e809..08cb0d2b9 100644
--- a/src/resources/spritedef.h
+++ b/src/resources/spritedef.h
@@ -118,7 +118,8 @@ class SpriteDef final : public Resource
* Loads a sprite definition file.
*/
static SpriteDef *load(const std::string &file,
- const int variant, bool prot) A_WARN_UNUSED;
+ const int variant,
+ const bool prot) A_WARN_UNUSED;
/**
* Returns the specified action.
@@ -199,7 +200,8 @@ class SpriteDef final : public Resource
* When there are no animations defined for the action "complete", its
* animations become a copy of those of the action "with".
*/
- void substituteAction(std::string complete, std::string with);
+ void substituteAction(const std::string &complete,
+ const std::string &with);
typedef std::map<std::string, ImageSet*> ImageSets;
typedef ImageSets::iterator ImageSetIterator;