//===========================================================================// // File: messmgr.cpp // // Project: BattleTech Brick: Mech subsystems // // Contents: SubsystemMessageManager -- the per-mech damage/explosion hub // //---------------------------------------------------------------------------// // Copyright (C) 1995, Virtual World Entertainment, Inc. // // All Rights reserved worldwide // // This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL // //===========================================================================// #include #pragma hdrstop #if !defined(MESSMGR_HPP) # include #endif #if !defined(MECH_HPP) # include #endif Derivation SubsystemMessageManager::ClassDerivations( Subsystem::ClassDerivations, "SubsystemMessageManager" ); SubsystemMessageManager::SharedData SubsystemMessageManager::DefaultData( SubsystemMessageManager::ClassDerivations, Subsystem::MessageHandlers, Subsystem::AttributeIndex, Subsystem::StateCount ); SubsystemMessageManager::SubsystemMessageManager( Mech *owner, int subsystem_ID, SubsystemResource *sub_res, SharedData &shared_data ): Subsystem(owner, subsystem_ID, sub_res, shared_data), weaponExplosions(NULL, False), damageInformation(NULL, False) { Check(owner); Check_Pointer(sub_res); rendererCompensateTime = 0.0f; terrainHitExplosionID = ResourceDescription::NullResourceID; Check_Fpu(); } SubsystemMessageManager::~SubsystemMessageManager() { } Logical SubsystemMessageManager::TestInstance() const { return IsDerivedFrom(ClassDerivations); } // //############################################################################# // The per-frame damage/explosion consolidation. Not yet reconstructed. //############################################################################# // void SubsystemMessageManager::ConsolidateAndSendDamage(Scalar) { Fail("SubsystemMessageManager::ConsolidateAndSendDamage -- messmgr.cpp not yet reconstructed"); } void SubsystemMessageManager::CreateWeaponExplosions(Logical, EntityID, Point3D) { Fail("SubsystemMessageManager::CreateWeaponExplosions -- messmgr.cpp not yet reconstructed"); } void SubsystemMessageManager::AddDamageMessage(Entity *, Entity__TakeDamageMessage *) { Fail("SubsystemMessageManager::AddDamageMessage -- messmgr.cpp not yet reconstructed"); } Logical SubsystemMessageManager::CreateStreamedSubsystem( ResourceFile *, NotationFile *, const char *, const char *, SubsystemResource *, NotationFile *, const ResourceDirectories * ) { Fail("SubsystemMessageManager::CreateStreamedSubsystem -- messmgr.cpp not yet reconstructed"); return False; }