Files
TeslaRel410/CODE/BT/BT_L4/BTL4MODE.HPP
T
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

153 lines
4.4 KiB
C++

//===========================================================================//
// File: btl4mode.hpp //
// Project: Battletech //
// Contents: BTL4 controls //
//---------------------------------------------------------------------------//
// Date Who Modification //
// -------- --- ---------------------------------------------------------- //
// 02/13/96 CPB Initial coding. //
//---------------------------------------------------------------------------//
// Copyright (C) 1996, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
//===========================================================================//
#if !defined(BTL4MODE_HPP)
# define BTL4MODE_HPP
# if !defined(MODE_HPP)
# include <mode.hpp>
# endif
//#########################################################################
//########################## BTL4ControlsManager ##########################
//#########################################################################
class BTL4ModeManager:
public ModeManager
{
public:
enum
{
};
//-------------------------------------------------------------------
// Construction/destruction/verification
//-------------------------------------------------------------------
public:
BTL4ModeManager(ModeMask initial_mask):
ModeManager(initial_mask)
{}
//-------------------------------------------------------------------
// Mode control
//-------------------------------------------------------------------
enum
{
ModeMFD1QuadBit = ModeManager::nextModeBit,
ModeMFD1Eng1Bit,
ModeMFD1Eng2Bit,
ModeMFD1Eng3Bit,
ModeMFD1Eng4Bit,
ModeMFD2QuadBit,
ModeMFD2Eng1Bit,
ModeMFD2Eng2Bit,
ModeMFD2Eng3Bit,
ModeMFD2Eng4Bit,
ModeMFD3QuadBit,
ModeMFD3Eng1Bit,
ModeMFD3Eng2Bit,
ModeMFD3Eng3Bit,
ModeMFD3Eng4Bit,
ModeMappingBit,
ModeNonMappingBit,
ModeIntercomBit,
ModeSecondaryDamageBit,
ModeSecondaryCriticalBit,
ModeSecondaryHeatBit,
ModeEjectBit,
ModePlasmaDisplayBit,
};
enum
{
// These 5 mutually exclusive
ModeMFD1Quad = 1L<<ModeMFD1QuadBit,
ModeMFD1Eng1 = 1L<<ModeMFD1Eng1Bit,
ModeMFD1Eng2 = 1L<<ModeMFD1Eng2Bit,
ModeMFD1Eng3 = 1L<<ModeMFD1Eng3Bit,
ModeMFD1Eng4 = 1L<<ModeMFD1Eng4Bit,
// These 5 mutually exclusive
ModeMFD2Quad = 1L<<ModeMFD2QuadBit,
ModeMFD2Eng1 = 1L<<ModeMFD2Eng1Bit,
ModeMFD2Eng2 = 1L<<ModeMFD2Eng2Bit,
ModeMFD2Eng3 = 1L<<ModeMFD2Eng3Bit,
ModeMFD2Eng4 = 1L<<ModeMFD2Eng4Bit,
// These 5 mutually exclusive
ModeMFD3Quad = 1L<<ModeMFD3QuadBit,
ModeMFD3Eng1 = 1L<<ModeMFD3Eng1Bit,
ModeMFD3Eng2 = 1L<<ModeMFD3Eng2Bit,
ModeMFD3Eng3 = 1L<<ModeMFD3Eng3Bit,
ModeMFD3Eng4 = 1L<<ModeMFD3Eng4Bit,
// These two mutually exclusive
ModeMapping = 1L<<ModeMappingBit,
ModeNonMapping= 1L<<ModeNonMappingBit,
ModeIntercom = 1L<<ModeIntercomBit,
// These three mutually exclusive
ModeSecondaryDamage = 1L<<ModeSecondaryDamageBit,
ModeSecondaryCritical= 1L<<ModeSecondaryCriticalBit,
ModeSecondaryHeat = 1L<<ModeSecondaryHeatBit,
ModeEject = 1L<<ModeEjectBit,
ModePlasmaDisplay = 1L<<ModePlasmaDisplayBit
};
// Useful combinations
enum
{
ModeInitial =
ModeMFD1Quad|ModeMFD2Quad|ModeMFD3Quad|ModeNonMapping|
ModeSecondaryDamage,
ModeNonConfig =
ModeNonMapping,
ModeMFD1NonQuad =
ModeMFD1Eng1|ModeMFD1Eng2|ModeMFD1Eng3|ModeMFD1Eng4,
ModeMFD1All =
ModeMFD1Quad|ModeMFD1NonQuad,
ModeMFD2NonQuad =
ModeMFD2Eng1|ModeMFD2Eng2|ModeMFD2Eng3|ModeMFD2Eng4,
ModeMFD2All =
ModeMFD2Quad|ModeMFD2NonQuad,
ModeMFD3NonQuad =
ModeMFD3Eng1|ModeMFD3Eng2|ModeMFD3Eng3|ModeMFD3Eng4,
ModeMFD3All =
ModeMFD3Quad|ModeMFD3NonQuad,
ModeSecondaryAll =
ModeSecondaryDamage|ModeSecondaryCritical|ModeSecondaryHeat
};
Logical // defined as virtual in MODE.HPP
ModeStringLookup(const char *name, ModeMask *returned_value);
};
#endif