Files
BT411/engine/MUNGA/TESTALL.cpp
T
arcattackandClaude Opus 4.8 7b7d465e5e Initial commit: bt411 -- standalone Windows BattleTech (Tesla 4.10 port)
Clean, self-contained extraction of the BattleTech-specific work from the
reverse-engineering workspace -- engine + game + content + build, with nothing
from Red Planet or the raw archive dumps. Builds green (Win32) and runs the
single-player drive->animate->target->fire->damage->destroy loop out of the box.

Layout:
  engine/   MUNGA + MUNGA_L4 shared 2007 engine, carrying our BT render/loader
            work (bgfload/L4D3D/L4VIDEO: BSL bit-slice decode, LOD/ground/shadow
            models) + image codec; the minimal rp/ headers the audio HAL needs
  game/     reconstructed BT logic + surviving-original BT source + fwd shims
            + WinMain launcher
  content/  full runtime tree (BTL4.RES, VIDEO/, GAUGE/, AUDIO/, eggs, BTDPL.INI)
  docs/     format specs + reconstruction ledgers
  reference/ raw Ghidra pseudocode (recon source-of-truth) + decomp exporter
  tools/    MP console emulator + map/resource scanners

One top-level CMake builds munga_engine lib + bt410_l4 game lib + btl4.exe.
All paths relativized (186 fwd shims + ~437 CMake abs paths -> repo-relative);
DXSDK is the one external, overridable via -DDXSDK. Verified: builds to a
byte-identical 2.27MB exe and runs combat (TARGET DESTROYED, 0 crashes) against
the bundled content.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-05 21:03:40 -05:00

167 lines
2.9 KiB
C++

#include "munga.h"
#pragma hdrstop
#include "namelist.h"
#include "notation.h"
//
//-------------------------------------------------
// Math
//-------------------------------------------------
//
#include "rect2d.h"
#include "angle.h"
#include "random.h"
#include "vector4d.h"
#include "rotation.h"
#include "origin.h"
#include "linmtrx.h"
#include "matrix.h"
#include "unitvec.h"
#include "ray.h"
#include "normal.h"
//
//----------------
// Spatial library
//----------------
//
#include "boxsolid.h"
//
//------------------
// Connection Engine
//------------------
//
#include "vchain.h"
#include "tree.h"
#include "table.h"
#include "hash.h"
#include "time.h"
#include "receiver.h"
// #define RUN_APPLICATION
char GlobalEggFileName[80];
int main()
{
#if defined(TEST_CLASS)
//
//-----------------------
// Test NameList classes
//-----------------------
//
#if 1
#if 1
ObjectNameList::TestClass();
NameList::TestClass();
AlphaNameList::TestClass();
NotationFile::TestClass();
#endif
#if 1
ResourceFile::TestClass();
StreamableResourceFile::TestClass();
#endif
//
//------------------
// Test string class
//------------------
//
#if 1
CString::TestClass();
#endif
//
//----------------
// Test Math brick
//----------------
//
#if 1
RandomGenerator::TestClass();
Radian::TestClass();
Degree::TestClass();
SinCosPair::TestClass();
Vector3D::TestClass();
LBE3Vector3D::TestClass();
TIVector3D::TestClass();
Vector4D::TestClass();
Point3D::TestClass();
UnitVector::TestClass();
Ray::TestClass();
EulerAngles::TestClass();
Quaternion::TestClass();
Origin::TestClass();
AffineMatrix::TestClass();
LinearMatrix::TestClass();
Matrix4x4::TestClass();
Normal::TestClass();
Rectangle2D::TestClass();
#endif
//
//-----------------
// Test spatializer
//-----------------
//
#if 1
BoundingBox::TestClass();
BoxedSolid::TestClass();
#endif
//
//------------------
// Test time manager
//------------------
//
#if 1
Time::TestClass();
#endif
//
//------------------------
// Test connection library
//------------------------
//
#if 1
Chain::TestClass();
SChain::TestClass();
VChain::TestClass();
Tree::TestClass();
Table::TestClass();
Hash::TestClass();
#endif
//
//------------------
// Test Memory brick
//------------------
//
#if 1
MemoryBlock::TestClass();
MemoryStack::TestClass();
#endif
//
//----------------------------
// Test dynamic dispatch brick
//----------------------------
//
#if 1
MessageTap::TestClass();
Receiver::MessageHandlerSet::TestClass();
Derivation::TestClass();
Receiver::TestClass();
#endif
#endif
//
//--------------------------------------------
// Stop registering, and tell us about its use
//--------------------------------------------
//
Tell("Exiting\n");
#endif
return 0;
}