//===========================================================================// // 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 #pragma hdrstop #if !defined(BTMSSN_HPP) # include #endif #if !defined(NOTATION_HPP) # include #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"; // TODO(bring-up): original called the global Exit(AbortExitCodeID); the // WinTesla engine has no free Exit() -> use the engine fatal-abort macro. Fail("ERROR: no temperature in egg!\n"); } missionTemperature += 273.15f; // Celsius to Kelvin conversion } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // BTMission::~BTMission() { } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // void BTMission::SetPlayerData(NotationFile*) { Fail("Should never reach BTMission::SetPlayerData() \n"); }