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>
68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
//===========================================================================//
|
|
// File: mechtech.cpp //
|
|
// Project: BattleTech Brick: Mech subsystems //
|
|
// Contents: MechTech -- the on-board technician / repair subsystem //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1995, Virtual World Entertainment, Inc. //
|
|
// All Rights reserved worldwide //
|
|
//===========================================================================//
|
|
|
|
#include <bt.hpp>
|
|
#pragma hdrstop
|
|
#if !defined(MECHTECH_HPP)
|
|
# include <mechtech.hpp>
|
|
#endif
|
|
#if !defined(MECH_HPP)
|
|
# include <mech.hpp>
|
|
#endif
|
|
|
|
Derivation
|
|
MechTech::ClassDerivations(Subsystem::ClassDerivations, "MechTech");
|
|
|
|
MechTech::SharedData
|
|
MechTech::DefaultData(
|
|
MechTech::ClassDerivations,
|
|
Subsystem::MessageHandlers,
|
|
Subsystem::AttributeIndex,
|
|
Subsystem::StateCount
|
|
);
|
|
|
|
MechTech::MechTech(
|
|
Mech *entity,
|
|
int subsystem_id,
|
|
SubsystemResource *model,
|
|
SharedData &shared_data
|
|
):
|
|
Subsystem(entity, subsystem_id, model, shared_data),
|
|
subsystemMonitors(NULL)
|
|
{
|
|
Check(entity);
|
|
Check_Pointer(model);
|
|
Check_Fpu();
|
|
}
|
|
|
|
MechTech::~MechTech()
|
|
{
|
|
}
|
|
|
|
Logical
|
|
MechTech::TestInstance() const
|
|
{
|
|
return IsDerivedFrom(ClassDerivations);
|
|
}
|
|
|
|
Logical
|
|
MechTech::CreateStreamedSubsystem(
|
|
NotationFile *,
|
|
const char *,
|
|
const char *,
|
|
SubsystemResource *,
|
|
NotationFile *,
|
|
const ResourceDirectories *,
|
|
ResourceFile *
|
|
)
|
|
{
|
|
Fail("MechTech::CreateStreamedSubsystem -- mechtech.cpp not yet reconstructed");
|
|
return False;
|
|
}
|