Completes every class the Mech-ctor segment walk instantiates: Reservoir (: HeatSink), Searchlight + ThermalSight (: PowerWatcher), MechTech + Subsystem- MessageManager (: Subsystem, surviving CODE headers), Actuator (: MechSubsystem fallback). All ctors chain their parents; per-frame methods staged. Full subsystem roster (~22 classes) reconstructed. BT: 42 ok; tree links clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
17 lines
775 B
C++
17 lines
775 B
C++
#include <bt.hpp>
|
|
#pragma hdrstop
|
|
#if !defined(ACTUATOR_HPP)
|
|
# include <actuator.hpp>
|
|
#endif
|
|
#if !defined(MECH_HPP)
|
|
# include <mech.hpp>
|
|
#endif
|
|
Derivation Actuator::ClassDerivations(MechSubsystem::ClassDerivations, "Actuator");
|
|
Actuator::SharedData Actuator::DefaultData(Actuator::ClassDerivations, Subsystem::MessageHandlers, Subsystem::AttributeIndex, Subsystem::StateCount);
|
|
Actuator::Actuator(Mech *owner, int subsystem_ID, SubsystemResource *r, SharedData &shared_data)
|
|
: MechSubsystem(owner, subsystem_ID, (MechSubsystem::SubsystemResource *)r, shared_data)
|
|
{ Check(owner); Check_Pointer(r); Check_Fpu(); }
|
|
Actuator::~Actuator() {}
|
|
Logical Actuator::TestClass(Mech &) { return True; }
|
|
Logical Actuator::TestInstance() const { return IsDerivedFrom(ClassDerivations); }
|