summaryrefslogtreecommitdiff
path: root/src/sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sprite.h b/src/sprite.h
index 8eb366d6..d7f5f1d7 100644
--- a/src/sprite.h
+++ b/src/sprite.h
@@ -46,7 +46,7 @@ class Sprite
*
* @returns true if the sprite changed, false otherwise
*/
- virtual bool play(std::string action) = 0;
+ virtual bool play(const std::string &action) = 0;
/**
* Inform the animation of the passed time so that it can output the
@@ -60,7 +60,7 @@ class Sprite
* Draw the current animation frame at the coordinates given in screen
* pixels.
*/
- virtual bool draw(Graphics* graphics, int posX, int posY) const = 0;
+ virtual bool draw(Graphics *graphics, int posX, int posY) const = 0;
/**
* Gets the width in pixels of the image