<commit_before>#ifndef ANIMATION_H
#define ANIMATION_H

#include <vector>

#include "Blittable.h"
#include "Logger.h"

namespace hm
{
	class Animation
	{
		public:
			Animation();
			~Animation();

			void add(Blittable& b);
			void remove(Blittable& b);
			void removeAll();

			int getUnits();
			void setUnits(const int units);
			unsigned int getFrames();
			void setFrames(const unsigned int frames);

			void setAnimationSpeed(const int units, const unsigned int frames = 1);

			virtual void animate() = 0;

		protected:
			int units;
			unsigned int frames;

			std::vector<Blittable*> targets;
	};<commit_msg>Add pure virtual isComplete() function.<commit_after>#ifndef ANIMATION_H
#define ANIMATION_H

#include <vector>

#include "Blittable.h"
#include "Logger.h"

namespace hm
{
	class Animation
	{
		public:
			Animation();
			~Animation();

			void add(Blittable& b);
			void remove(Blittable& b);
			void removeAll();

			int getUnits();
			void setUnits(const int units);
			unsigned int getFrames();
			void setFrames(const unsigned int frames);

			void setAnimationSpeed(const int units, const unsigned int frames = 1);

			virtual void animate() = 0;
			virtual bool isComplete() = 0;

		protected:
			int units;
			unsigned int frames;

			std::vector<Blittable*> targets;
	};
{'fraction_non_alphanumeric': 0.11188271604938271, 'fraction_numerical': 0.0038580246913580245, 'mean_word_length': 3.950381679389313, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '702458', 'n_tokens_mistral': 494, 'n_tokens_neox': 410, 'n_words': 128}