#include "RepairExecutor.h"

#include "BehaviorKind.h"
#include "EntityAdmin.h"
#include "OrbitAndAssignExecutor.h"
#include "RepairBehavior.h"
#include "RepairToolComponent.h"
#include "tracing.h"

void RepairExecutor::execute(EntityAdmin& admin)
{
    TRACE();

    // Orbit the repair target and hand it to every repair tool that can reach it
    // (REQ-SHP-ORBIT).
    executeOrbitAndAssign<RepairBehavior, RepairToolComponent>(admin, BehaviorKind::Repair);
}
