Files
TeslaRel410/CODE/BT/BT/BTMSSN.CPP
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

71 lines
2.6 KiB
C++

//===========================================================================//
// File: btmssn.cpp //
// Project: BattleTech //
// Contents: Implementation Details for missions //
//---------------------------------------------------------------------------//
// Date Who Modification //
// -------- --- ---------------------------------------------------------- //
// 04/07/95 ECH Initial coding. //
// 09/12/95 JM added scenario //
//---------------------------------------------------------------------------//
// Copyright (C) 1995, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
//===========================================================================//
#include <bt.hpp>
#pragma hdrstop
#if !defined(BTMSSN_HPP)
# include <btmssn.hpp>
#endif
#if !defined(NOTATION_HPP)
# include <notation.hpp>
#endif
//##########################################################################
//########################### BTMission ################################
//##########################################################################
BTMission::BTMission(
NotationFile *notation_file,
ResourceFile *resource_file
):
Mission(notation_file, resource_file)
{
Check(notation_file);
Check(resource_file);
//
//~~~~~~~~~~~~~~~~~~~~~~~~
// Load Up Default Values
//~~~~~~~~~~~~~~~~~~~~~~~~
//
experienceLevel = BTMission::NoviceMode;
advancedDamageOn = False;
int ret;
ret = notation_file->GetEntry("mission", "temperature", &missionTemperature);
if (!ret)
{
DEBUG_STREAM << "ERROR: no temperature in egg!\n";
Exit(AbortExitCodeID);
}
missionTemperature += 273.15f; // Celsius to Kelvin conversion
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
BTMission::~BTMission()
{
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
BTMission::SetPlayerData(NotationFile*)
{
Fail("Should never reach BTMission::SetPlayerData() \n");
}