Emergency 20 Dokumentation  4.2.0
AudioComponent-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
15  qsf::Component(prototype),
16  mAudioSet(AUDIOSET_NONE),
17  mRandomWaitIntervalStart(30.0f),
18  mRandomWaitIntervalEnd(60.0f),
19  mRandomProbability(1.0f)
20  {
21  // Nothing to do in here
22  }
23 
25  {
26  // Nothing to do in here
27  }
28 
30  {
31  return mAudioSet;
32  }
33 
35  {
36  mAudioSet = audioSet;
37  }
38 
40  {
41  return mRandomWaitIntervalStart;
42  }
43 
44  inline void AudioComponent::setRandomWaitIntervalStart(float randomProbabilityStart)
45  {
46  mRandomWaitIntervalStart = randomProbabilityStart;
47  }
48 
50  {
51  return mRandomWaitIntervalEnd;
52  }
53 
54  inline void AudioComponent::setRandomWaitIntervalEnd(float randomWaitIntervalEnd)
55  {
56  mRandomWaitIntervalEnd = randomWaitIntervalEnd;
57  }
58 
60  {
61  return mRandomProbability;
62  }
63 
64  inline void AudioComponent::setRandomProbability(float randomProbability)
65  {
66  mRandomProbability = randomProbability;
67  }
68 
69 
70 //[-------------------------------------------------------]
71 //[ Namespace ]
72 //[-------------------------------------------------------]
73 } // em5
Definition: ActionPriority.h:13
AudioComponent(qsf::Prototype *prototype)
Constructor.
Definition: AudioComponent-inl.h:14
float getRandomWaitIntervalStart() const
Definition: AudioComponent-inl.h:39
AudioSet getAudioSet() const
Definition: AudioComponent-inl.h:29
void setRandomWaitIntervalStart(float randomWaitIntervalStart)
Definition: AudioComponent-inl.h:44
virtual ~AudioComponent()
Destructor.
Definition: AudioComponent-inl.h:24
float getRandomProbability() const
Definition: AudioComponent-inl.h:59
Definition: PickupPersonByParamedicAction.h:21
void setAudioSet(AudioSet audioSet)
Definition: AudioComponent-inl.h:34
void setRandomProbability(float randomProbability)
Definition: AudioComponent-inl.h:64
void setRandomWaitIntervalEnd(float randomWaitIntervalEnd)
Definition: AudioComponent-inl.h:54
float getRandomWaitIntervalEnd() const
Definition: AudioComponent-inl.h:49
Prototype class.
Definition: Prototype.h:100
AudioSet
Definition: AudioComponent.h:51