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

92 lines
2.8 KiB
C++

//===========================================================================//
// File: evtstat.hpp //
// Project: MUNGA Brick: Event Manager //
// Contents: interface specification of event manager //
//---------------------------------------------------------------------------//
// Date Who Modification //
// -------- --- ---------------------------------------------------------- //
// 05/15/96 ECH Initial coding. //
//---------------------------------------------------------------------------//
// Copyright (C) 1994-1995, Virtual World Entertainment, Inc. //
// PROPRIETARY AND CONFIDENTIAL //
//===========================================================================//
#if !defined(EVTSTAT_HPP)
# define EVTSTAT_HPP
# if !defined(STYLE_HPP)
# include "style.hpp"
# endif
# if !defined(RECEIVER)
# include "receiver.hpp"
# endif
//#########################################################################
//######################## EventStatistics ##########################
//#########################################################################
class EventStatistics:
public Plug
{
friend class EventStatisticsManager;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Construction, Destruction
//
public:
EventStatistics::EventStatistics(
ClassID class_ID,
Receiver::MessageID message_ID
);
~EventStatistics() {}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Private Data
//
private:
ClassID
classID;
Receiver::MessageID
messageID;
long
eventCount;
};
//#########################################################################
//##################### EventStatisticsManager ######################
//#########################################################################
class EventStatisticsManager:
public Node
{
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Construction, Destruction
//
public:
EventStatisticsManager::EventStatisticsManager();
~EventStatisticsManager() {}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Statistic collection and reporting
//
public:
void
Maintain(Event *event);
void
Report();
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Private Data
//
private:
TableOf<EventStatistics*, long>
eventStatisticsSocket;
Logical
printedReport;
};
extern EventStatisticsManager
event_statistics_manager;
#endif