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>
88 lines
2.1 KiB
C++
88 lines
2.1 KiB
C++
#pragma once
|
|
|
|
#include "..\munga\audwthr.h"
|
|
#include "l4audio.h"
|
|
#include "..\munga\normal.h"
|
|
|
|
//##########################################################################
|
|
//##################### L4AudioCollisionTrigger ######################
|
|
//##########################################################################
|
|
|
|
class L4AudioCollisionTrigger:
|
|
public AudioStateWatcher
|
|
{
|
|
public:
|
|
//
|
|
//--------------------------------------------------------------------
|
|
// Constructor, Destructor
|
|
//--------------------------------------------------------------------
|
|
//
|
|
#if 0
|
|
L4AudioCollisionTrigger(
|
|
StateIndicator *state_attribute_ptr,
|
|
Normal *normal_attribute_ptr,
|
|
Static3DPatchSource *audio_source,
|
|
Enumeration trigger_state,
|
|
AudioControlID control_ID,
|
|
AudioControlValue control_value,
|
|
Logical dump_value
|
|
);
|
|
#endif
|
|
L4AudioCollisionTrigger(
|
|
PlugStream *stream,
|
|
Entity *entity
|
|
);
|
|
~L4AudioCollisionTrigger();
|
|
|
|
Logical
|
|
TestInstance() const;
|
|
|
|
//
|
|
//--------------------------------------------------------------------
|
|
// BuildFromPage
|
|
//--------------------------------------------------------------------
|
|
//
|
|
static void
|
|
BuildFromPage(
|
|
PlugStream *stream,
|
|
NameList *name_list,
|
|
RegisteredClass::ClassID class_ID,
|
|
ObjectID object_ID
|
|
);
|
|
|
|
protected:
|
|
//
|
|
//--------------------------------------------------------------------
|
|
// StateChanged
|
|
//--------------------------------------------------------------------
|
|
//
|
|
void
|
|
StateChanged(
|
|
Enumeration old_state,
|
|
Enumeration new_state
|
|
);
|
|
|
|
private:
|
|
//
|
|
//-----------------------------------------------------------------------
|
|
// DumpValue
|
|
//-----------------------------------------------------------------------
|
|
//
|
|
void
|
|
DumpValue(const StateIndicator *state_attribute_ptr);
|
|
|
|
//
|
|
//--------------------------------------------------------------------
|
|
// Private data
|
|
//--------------------------------------------------------------------
|
|
//
|
|
Normal*
|
|
normalAttributePtr;
|
|
Enumeration
|
|
triggerState;
|
|
AudioControlID
|
|
controlID;
|
|
AudioControlValue
|
|
controlValue;
|
|
};
|