blob: aa71fb168788a112102dcbcf41c14f61c9ba5e5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
//=============================================================================
// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
//
// File: animobjsoundplayer.h
//
// Description: Plays sound for moving anim objs
//
// History: 6/5/2003 + Created -- Esan (post-beta, yay!)
//
//=============================================================================
#ifndef ANIMOBJSOUNDPLAYER_H
#define ANIMOBJSOUNDPLAYER_H
//========================================
// Nested Includes
//========================================
#include <sound/positionalsoundplayer.h>
#include <p3d/anim/pose.hpp>
//========================================
// Forward References
//========================================
struct AnimSoundDSGData;
struct radSoundVector;
class AnimCollisionEntityDSG;
//=============================================================================
//
// Synopsis: AnimObjSoundPlayer
//
//=============================================================================
class AnimObjSoundPlayer : public PositionCarrier
{
public:
AnimObjSoundPlayer();
virtual ~AnimObjSoundPlayer();
bool IsActive() { return( m_identity != NULL ); }
bool UsesObject( AnimCollisionEntityDSG* soundObject ) { return( soundObject == m_identity ); }
void Activate( AnimSoundDSGData* soundData );
void Deactivate();
void ServiceOncePerFrame();
//
// PositionCarrier functions
//
void GetPosition( radSoundVector& position );
void GetVelocity( radSoundVector& velocity );
private:
//Prevent wasteful constructor creation.
AnimObjSoundPlayer( const AnimObjSoundPlayer& animobjsoundplayer );
AnimObjSoundPlayer& operator=( const AnimObjSoundPlayer& animobjsoundplayer );
tPose::Joint* m_joint;
AnimCollisionEntityDSG* m_identity;
PositionalSoundPlayer m_player;
};
//*****************************************************************************
//
//Inline Public Member Functions
//
//*****************************************************************************
#endif //ANIMOBJSOUNDPLAYER_H
|