Files
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

57 lines
2.2 KiB
Plaintext

//===========================================================================//
// File: host.tst //
// Project: MUNGA Brick: Connection Library //
// Contents: Interface specification for base Host class //
//---------------------------------------------------------------------------//
// Date Who Modification //
// -------- --- ---------------------------------------------------------- //
// 12/07/94 ECH Initial coding. //
//---------------------------------------------------------------------------//
// Copyright (C) 1994, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
//===========================================================================//
void
HostManager::TestClass()
{
DEBUG_STREAM << "Starting Host test...\n";
//
//--------------------------------------------------------------------
//--------------------------------------------------------------------
//
Host *local_host;
local_host = new Host(
FirstLegalHostID,
GameMachineHostType,
(NetworkAddress)1
);
Register_Object(local_host);
Check(application);
Check(application->GetHostManager());
application->GetHostManager()->AdoptLocalHost(local_host);
//
//--------------------------------------------------------------------
//--------------------------------------------------------------------
//
HostID localHostID;
Check(application);
localHostID = application->GetHostManager()->GetLocalHostID();
Verify(localHostID != NullHostID);
//
//--------------------------------------------------------------------
//--------------------------------------------------------------------
//
EntityID newEntityID;
Check(application);
newEntityID = application->GetHostManager()->MakeUniqueEntityID();
Verify(newEntityID != EntityID::Null);
}