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