Files
CydandClaude Fable 5 fdd9ac9d97 Initial import: Tesla Release 4.10 (Tesla:BattleTech & Tesla:Red Planet)
Archival snapshot of the Virtual World Entertainment Tesla cockpit
software, 1994-1996: MUNGA engine and L4 pod layer source (Borland
C++ 5.0), BT/RP game code, and game content (models, audio, maps,
gauges, Division renderer data). Includes third-party libraries:
Division dVS/DPL graphics, HMI SOS audio, WATTCP networking.

Files are preserved byte-for-byte (.gitattributes disables all
line-ending conversion). README.md documents the layout, target
hardware, and toolchain.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 13:21:58 -05:00

119 lines
3.4 KiB
C++

//===========================================================================//
// File: audent.hpp //
// Project: MUNGA Brick: Model Manager //
// Contents: Interface specification for audio entity class //
//---------------------------------------------------------------------------//
// Date Who Modification //
// -------- --- ---------------------------------------------------------- //
// 12/20/95 ECH Initial coding. //
//---------------------------------------------------------------------------//
// Copyright (C) 1995, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
//===========================================================================//
#if !defined(AUDENT_HPP)
# define AUDENT_HPP
# if !defined(EXPLODE_HPP)
# include <explode.hpp>
# endif
# if !defined(SEGMENT_HPP)
# include <segment.hpp>
# endif
# if !defined(SLOT_HPP)
# include <slot.hpp>
# endif
//##########################################################################
//########################## AudioEntity #############################
//##########################################################################
class AudioEntity__MakeMessage;
class AudioEntity:
public Explosion
{
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Public types
//
public:
typedef AudioEntity__MakeMessage
MakeMessage;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Construction and Destruction
//
public:
AudioEntity(
MakeMessage *creation_message,
SharedData &shared_data = DefaultData
);
~AudioEntity();
static AudioEntity*
Make(MakeMessage *creation_message);
Logical
TestInstance() const;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Model Support
//
public:
typedef void
(AudioEntity::*Performance)(Scalar time_slice);
void
SetPerformance(Performance performance)
{
Check(this);
activePerformance = (Simulation::Performance)performance;
}
void
AudioEntitySimulation(Scalar time_slice);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Shared Data support
//
public:
static Derivation
ClassDerivations;
static SharedData
DefaultData;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Private Data
//
private:
SlotOf<Entity*>
parentEntitySocket;
EntitySegment
*parentEntitySegment;
};
//##########################################################################
//#################### AudioEntity__MakeMessage ######################
//##########################################################################
class AudioEntity__MakeMessage:
public Explosion::MakeMessage
{
public:
AudioEntity__MakeMessage(
ResourceDescription::ResourceID resource_ID,
Entity *parent_entity,
EntitySegment *parent_entity_segment
);
EntityID
parentEntityID;
EntitySegment
*parentEntitySegment;
};
#endif