Initial import of Red Planet v4.10 Win32 source
Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user