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>
96 lines
2.9 KiB
C++
96 lines
2.9 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_HPP)
|
|
# include <receiver.hpp>
|
|
# endif
|
|
|
|
# if !defined(TABLE_HPP)
|
|
# include <table.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 |