- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
191 lines
4.6 KiB
C++
191 lines
4.6 KiB
C++
//===========================================================================//
|
|
// File: cnslmsgs.hpp //
|
|
// Project: MUNGA Brick: //
|
|
// Contents: Console messages //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- -----------------------------------------------------------//
|
|
// 06/02/95 ECH Initial coding. //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1994-1995, Virtual World Entertainment, Inc. //
|
|
// All Rights reserved worldwide //
|
|
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
|
|
//===========================================================================//
|
|
|
|
#if !defined(BTCNSL_HPP)
|
|
# define BTCNSL_HPP
|
|
|
|
# if !defined(CONSOLE_HPP)
|
|
# include <console.hpp>
|
|
# endif
|
|
|
|
enum
|
|
{
|
|
ConsolePlayerMechKilledMessageID = 9,
|
|
ConsolePlayerMechDamagedMessageID = 10,
|
|
ConsoleBTTeamScoreUpdateMessageID = 12,
|
|
ConsolePlayerMechScoreUpdateMessageID = 13,
|
|
ConsolePlayerMechDeathWithoutHonorMessageID = 15
|
|
};
|
|
|
|
//##########################################################################
|
|
//################ ConsolePlayerMechKilledMessage ####################
|
|
//##########################################################################
|
|
|
|
class ConsolePlayerMechKilledMessage:
|
|
public NetworkClient::Message
|
|
{
|
|
public:
|
|
ConsolePlayerMechKilledMessage(
|
|
HostID player_host_ID,
|
|
HostID killer_host_ID
|
|
);
|
|
|
|
HostID
|
|
GetPlayerHostID()
|
|
{return playerHostID;}
|
|
HostID
|
|
GetKillerHostID()
|
|
{return killerHostID;}
|
|
|
|
private:
|
|
HostID
|
|
playerHostID;
|
|
HostID
|
|
killerHostID;
|
|
};
|
|
|
|
//##########################################################################
|
|
//############## ConsolePlayerMechScoreUpdateMessage #################
|
|
//##########################################################################
|
|
|
|
class ConsolePlayerMechScoreUpdateMessage:
|
|
public NetworkClient::Message
|
|
{
|
|
public:
|
|
ConsolePlayerMechScoreUpdateMessage(
|
|
HostID player_host_ID,
|
|
int score
|
|
);
|
|
|
|
HostID
|
|
GetPlayerHostID()
|
|
{return playerHostID;}
|
|
int
|
|
GetPlayerScore()
|
|
{return playerScore;}
|
|
|
|
private:
|
|
HostID
|
|
playerHostID;
|
|
int
|
|
playerScore;
|
|
};
|
|
|
|
//##########################################################################
|
|
//############### ConsoleBTTeamScoreUpdateMessage ####################
|
|
//##########################################################################
|
|
|
|
class ConsoleBTTeamScoreUpdateMessage:
|
|
public NetworkClient::Message
|
|
{
|
|
public:
|
|
ConsoleBTTeamScoreUpdateMessage(
|
|
int team_ID,
|
|
int score
|
|
);
|
|
|
|
int
|
|
GetTeamID()
|
|
{return teamID;}
|
|
int
|
|
GetTeamScore()
|
|
{return teamScore;}
|
|
|
|
private:
|
|
int
|
|
teamID;
|
|
int
|
|
teamScore;
|
|
};
|
|
|
|
//##########################################################################
|
|
//############### ConsolePlayerMechDamagedMessage ####################
|
|
//##########################################################################
|
|
|
|
class ConsolePlayerMechDamagedMessage:
|
|
public NetworkClient::Message
|
|
{
|
|
public:
|
|
ConsolePlayerMechDamagedMessage(
|
|
HostID player_host_ID,
|
|
HostID damager_host_ID,
|
|
int loss,
|
|
int damage_zone_index,
|
|
Logical damage_zone_destroyed,
|
|
int points_transfered,
|
|
int weapon_index
|
|
);
|
|
|
|
HostID
|
|
GetPlayerHostID()
|
|
{return playerHostID;}
|
|
HostID
|
|
GetDamagerHostID()
|
|
{return damagerHostID;}
|
|
int
|
|
GetDamageLoss()
|
|
{return damageLoss;}
|
|
int
|
|
GetPointsTransfered()
|
|
{return pointsTransfered;}
|
|
int
|
|
GetDamageZoneIndex()
|
|
{return damageZoneIndex;}
|
|
Logical
|
|
GetDamageZoneDestroyed()
|
|
{return damageZoneDestroyed;}
|
|
int
|
|
GetWeaponIndex()
|
|
{return weaponIndex;}
|
|
|
|
private:
|
|
HostID
|
|
playerHostID;
|
|
HostID
|
|
damagerHostID;
|
|
int
|
|
damageLoss;
|
|
int
|
|
pointsTransfered;
|
|
int
|
|
damageZoneIndex;
|
|
Logical
|
|
damageZoneDestroyed;
|
|
int
|
|
weaponIndex;
|
|
};
|
|
|
|
//##########################################################################
|
|
//########### ConsolePlayerMechDeathWithoutHonorMessage ##############
|
|
//##########################################################################
|
|
|
|
class ConsolePlayerMechDeathWithoutHonorMessage:
|
|
public NetworkClient::Message
|
|
{
|
|
public:
|
|
ConsolePlayerMechDeathWithoutHonorMessage(
|
|
HostID player_host_ID
|
|
);
|
|
|
|
HostID
|
|
GetPlayerHostID()
|
|
{return playerHostID;}
|
|
|
|
private:
|
|
HostID
|
|
playerHostID;
|
|
};
|
|
|
|
#endif
|