From 64aabf79b5a10bdf8192bb1048804a3e36730905 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 May 2014 22:47:30 +0300 Subject: Fix code style in resources. --- src/resources/action.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/resources/action.cpp') diff --git a/src/resources/action.cpp b/src/resources/action.cpp index 7deced3d5..cbcf4f72b 100644 --- a/src/resources/action.cpp +++ b/src/resources/action.cpp @@ -23,7 +23,6 @@ #include "resources/action.h" #include "resources/animation.h" -#include "resources/spritedef.h" #include "utils/dtor.h" @@ -40,7 +39,7 @@ Action::~Action() delete_all(mAnimations); } -const Animation *Action::getAnimation(int direction) const noexcept +const Animation *Action::getAnimation(SpriteDirection direction) const noexcept { Animations::const_iterator i = mAnimations.find(direction); @@ -66,7 +65,7 @@ const Animation *Action::getAnimation(int direction) const noexcept return (i == mAnimations.end()) ? nullptr : i->second; } -void Action::setAnimation(const int direction, +void Action::setAnimation(const SpriteDirection direction, Animation *const animation) noexcept { mAnimations[direction] = animation; -- cgit v1.2.3-70-g09d2