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>
117 lines
3.1 KiB
C++
117 lines
3.1 KiB
C++
//===========================================================================//
|
|
// File: rp4lbe4.hh //
|
|
// Project: MUNGA Brick: Red Planet LBE Application //
|
|
// Contents: //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- ---------------------------------------------------------- //
|
|
// //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1994, Virtual World Entertainment, Inc. //
|
|
// All Rights reserved worldwide //
|
|
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
|
|
//===========================================================================//
|
|
|
|
#if !defined(BTL4PB_HPP)
|
|
# define BTL4PB_HPP
|
|
|
|
# if !defined(BTL4APP_HPP)
|
|
# include <btl4app.hpp>
|
|
# endif
|
|
|
|
# if !defined(L4SPLR_HPP)
|
|
# include <l4splr.hpp>
|
|
# endif
|
|
|
|
//##########################################################################
|
|
//####################### RPSpoolerTask ##############################
|
|
//##########################################################################
|
|
|
|
class BTSpoolerTask:
|
|
public SpoolerTask
|
|
{
|
|
public:
|
|
BTSpoolerTask();
|
|
~BTSpoolerTask();
|
|
|
|
void
|
|
DispatchPacket(NetworkPacket *packet);
|
|
long
|
|
GetTimeBias();
|
|
};
|
|
|
|
//##########################################################################
|
|
//#################### RPPlaybackApplication ##########################
|
|
//##########################################################################
|
|
|
|
class BTL4PlaybackApplication:
|
|
public BTL4Application
|
|
{
|
|
public:
|
|
BTL4PlaybackApplication(
|
|
ResourceFile *resource,
|
|
SpoolFile *spool_file = NULL
|
|
);
|
|
~BTL4PlaybackApplication();
|
|
|
|
Logical
|
|
TestInstance() const;
|
|
|
|
void
|
|
SetSpoolFile(SpoolFile *spool_file)
|
|
{spoolFile = spool_file;}
|
|
|
|
MissionReviewApplicationManager*
|
|
GetApplicationManager()
|
|
{
|
|
return
|
|
(MissionReviewApplicationManager*)
|
|
Application::GetApplicationManager();
|
|
}
|
|
|
|
long
|
|
GetTimeBias()
|
|
{return timeBias;}
|
|
|
|
void
|
|
DispatchPacket(NetworkPacket *packet);
|
|
|
|
protected:
|
|
NetworkManager*
|
|
MakeNetworkManager();
|
|
|
|
long
|
|
timeBias;
|
|
|
|
void
|
|
Initialize();
|
|
void
|
|
LoadBackgroundTasks();
|
|
Logical
|
|
ExecuteForeground(
|
|
Time start_of_frame,
|
|
Scalar frame_duration
|
|
);
|
|
void
|
|
ExecuteBackgroundTask();
|
|
|
|
static const HandlerEntry
|
|
MessageHandlerEntries[];
|
|
static MessageHandlerSet
|
|
MessageHandlers;
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Shared Data Support
|
|
//
|
|
public:
|
|
static Derivation ClassDerivations;
|
|
static SharedData DefaultData;
|
|
|
|
void
|
|
RunMissionMessageHandler(RunMissionMessage *message);
|
|
void
|
|
StopMissionMessageHandler(StopMissionMessage *message);
|
|
};
|
|
|
|
#endif
|