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>
175 lines
4.9 KiB
C++
175 lines
4.9 KiB
C++
//===========================================================================//
|
|
// File: L4mppr.hpp. //
|
|
// Project: MUNGA Brick: Hardware-specific controls module //
|
|
// Contents: Interface specification for L4 mapper //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- -----------------------------------------------------------//
|
|
// 06/20/95 JM Initial Coding //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1995, Virtual World Entertainment, Inc. All rights reserved //
|
|
// PROPRIETARY and CONFIDENTIAL //
|
|
//===========================================================================//
|
|
#if !defined(L4MPPR_HPP)
|
|
# define L4MPPR_HPP
|
|
|
|
#if !defined (CONTROLS_HPP)
|
|
# include "controls.hpp"
|
|
#endif
|
|
|
|
#if !defined (CAMMPPR_HPP)
|
|
# include "cammppr.hpp"
|
|
#endif
|
|
|
|
//##########################################################################
|
|
//#################### CameraL4Mapper #######################
|
|
//##########################################################################
|
|
class CameraL4Mapper :
|
|
public CameraControlsMapper
|
|
{
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Shared Data Support
|
|
//
|
|
public:
|
|
static Derivation ClassDerivations;
|
|
static SharedData DefaultData;
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Messaging Support
|
|
//
|
|
public:
|
|
void
|
|
KeypressMessageHandler(ReceiverDataMessageOf<ControlsKey> *message);
|
|
|
|
protected:
|
|
static const HandlerEntry
|
|
MessageHandlerEntries[];
|
|
static MessageHandlerSet
|
|
MessageHandlers;
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Model Support
|
|
//
|
|
public:
|
|
typedef void
|
|
(CameraL4Mapper::*Performance)(Scalar time_slice);
|
|
|
|
void
|
|
InterpretControls(Scalar time_slice);
|
|
|
|
void
|
|
SetPerformance(Performance performance)
|
|
{
|
|
Check(this);
|
|
activePerformance = (Simulation::Performance)performance;
|
|
}
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Construction and Destruction Support
|
|
//
|
|
public:
|
|
CameraL4Mapper(
|
|
CameraShip *owner,
|
|
int subsystem_ID,
|
|
SubsystemResource *subsystem_resource,
|
|
SharedData &shared_data = DefaultData
|
|
);
|
|
~CameraL4Mapper();
|
|
|
|
Logical
|
|
TestInstance() const;
|
|
|
|
protected:
|
|
ControlsScalar
|
|
leftPedal,
|
|
rightPedal;
|
|
};
|
|
|
|
//##########################################################################
|
|
//#################### CameraThrustmasterMapper #######################
|
|
//##########################################################################
|
|
|
|
class CameraThrustmasterMapper :
|
|
public CameraL4Mapper
|
|
{
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Shared Data Support
|
|
//
|
|
public:
|
|
static Derivation ClassDerivations;
|
|
static SharedData DefaultData;
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Model Support
|
|
//
|
|
public:
|
|
typedef void
|
|
(CameraThrustmasterMapper::*Performance)(Scalar time_slice);
|
|
|
|
void
|
|
InterpretControls(Scalar time_slice);
|
|
|
|
void
|
|
SetPerformance(Performance performance)
|
|
{
|
|
Check(this);
|
|
activePerformance = (Simulation::Performance)performance;
|
|
}
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Construction and Destruction Support
|
|
//
|
|
public:
|
|
CameraThrustmasterMapper(
|
|
CameraShip *owner,
|
|
int subsystem_ID,
|
|
SubsystemResource *subsystem_resource,
|
|
SharedData &shared_data = DefaultData
|
|
);
|
|
~CameraThrustmasterMapper();
|
|
|
|
Logical
|
|
TestInstance() const;
|
|
|
|
protected:
|
|
ControlsButton
|
|
throttleUp,
|
|
throttleDown;
|
|
};
|
|
|
|
//##########################################################################
|
|
//########################### CameraRIOMapper ########################
|
|
//##########################################################################
|
|
|
|
class CameraRIOMapper :
|
|
public CameraL4Mapper
|
|
{
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Shared Data Support
|
|
//
|
|
public:
|
|
static Derivation ClassDerivations;
|
|
static SharedData DefaultData;
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Construction and Destruction Support
|
|
//
|
|
public:
|
|
CameraRIOMapper(
|
|
CameraShip *owner,
|
|
int subsystem_ID,
|
|
SubsystemResource *subsystem_resource,
|
|
SharedData &shared_data = DefaultData
|
|
);
|
|
~CameraRIOMapper();
|
|
|
|
Logical
|
|
TestInstance() const;
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|