16 int animationIndex = 0;
18 std::map<AnimationType, std::unique_ptr<Animation>> animations;
23 SDL_Rect srcRect, destRect;
25 bool animated =
false;
36 void setTexture(
const char* path);
39 void update()
override;
41 void playAnimation(AnimationType type);
42 void setDirection(Direction direction);