#include "enemy_creator.hpp" EnemyCreator::EnemyCreator( IEnemyFactory small_enemy_factory, IEnemyFactory big_enemy_factory ) noexcept : _small_enemy_factory(small_enemy_factory), _big_enemy_factory(big_enemy_factory) { } std::unique_ptr EnemyCreator::create_small_enemy() noexcept { return _small_enemy_factory(); } std::unique_ptr EnemyCreator::create_big_enemy() noexcept { return _big_enemy_factory(); }