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>
98 lines
3.2 KiB
Plaintext
98 lines
3.2 KiB
Plaintext
//===========================================================================//
|
|
// File: app.tst //
|
|
// Project: MUNGA Brick: Application //
|
|
// Contents: Interface specification for Application //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- ---------------------------------------------------------- //
|
|
// 12/12/94 ECH Added event utilities. //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1994, Virtual World Entertainment, Inc. //
|
|
// All Rights reserved worldwide //
|
|
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
|
|
//===========================================================================//
|
|
|
|
#include "app.thp"
|
|
#include "entity.thp"
|
|
#include "controls.thp"
|
|
|
|
TestApplication::TestApplication(ResourceFile *resource_file):
|
|
Application(resource_file, (ApplicationID)0)
|
|
{
|
|
}
|
|
|
|
TestApplication::~TestApplication()
|
|
{
|
|
}
|
|
|
|
void
|
|
TestApplication::Initialize()
|
|
{
|
|
Check(this);
|
|
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
// Create the network manager
|
|
//--------------------------------------------------------------------------
|
|
//
|
|
application = this;
|
|
networkManager = MakeNetworkManager();
|
|
Register_Object(networkManager);
|
|
|
|
#if 0
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
// Create the registry, load static object streams
|
|
//--------------------------------------------------------------------------
|
|
//
|
|
registry = MakeRegistry();
|
|
Register_Object(registry);
|
|
registry->LoadStaticObjectStreamResource();
|
|
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
// Create the controls manager
|
|
//--------------------------------------------------------------------------
|
|
//
|
|
controlsManager = MakeControlsManager();
|
|
Register_Object(controlsManager);
|
|
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
// Create the intercom manager
|
|
//--------------------------------------------------------------------------
|
|
//
|
|
intercomManager = MakeIntercomManager();
|
|
Register_Object(intercomManager);
|
|
#endif
|
|
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
// Add background tasks
|
|
//--------------------------------------------------------------------------
|
|
//
|
|
ApplicationTask *application_task;
|
|
|
|
application_task = new RoutePacketTask;
|
|
Register_Object(application_task);
|
|
backgroundTasks->AddTask(application_task);
|
|
|
|
application_task = new ProcessEventTask;
|
|
Register_Object(application_task);
|
|
backgroundTasks->AddTask(application_task);
|
|
|
|
application_task = new CompleteCyclesTask;
|
|
Register_Object(application_task);
|
|
backgroundTasks->AddTask(application_task);
|
|
}
|
|
|
|
void
|
|
TestApplication::Terminate()
|
|
{
|
|
Check(this);
|
|
application = this;
|
|
networkManager->Shutdown();
|
|
Application::Terminate();
|
|
}
|
|
|