

Public Member Functions | |
| SoundListenerComponent (Entity *parent, bool isMainListener=true) | |
| Constructor. | |
| ~SoundListenerComponent () | |
| Deconstructor. | |
| bool | getIsMainListener () const |
| Checks if this listener is the main listener. | |
| void | setIsMainListener (bool value=true) |
| Sets whether this listener is the main listener. | |
| void | onPositionChange (void *p) |
| Updates the position of the component after its parent has been updated. | |
| void | onRotationChange (void *p) |
| Updates the rotation of the component after its parent has been updated. | |
| void | onPause (void *p) |
| Pauses the component if the parent is paused. | |
| void | onUnPause (void *p) |
| Unpauses the component if the parent is unpaused. | |
Static Public Member Functions | |
| static bool | parseXML (IXMLReader *file, Entity *entity) |
| Parses for a SoundListenerComponent. | |
XML:
<SoundListenerComponent> <!-- Properties --> </SoundListenerComponent>
Definition at line 34 of file SoundListenerComponent.h.
| SoundListenerComponent::SoundListenerComponent | ( | Entity * | parent, | |
| bool | isMainListener = true | |||
| ) |
Constructor.
| parent | The parent entity to which the component should be added. | |
| isMainListener | Sets whether this is the main listener. |
Definition at line 27 of file SoundListenerComponent.cpp.
| SoundListenerComponent::~SoundListenerComponent | ( | ) |
| bool SoundListenerComponent::getIsMainListener | ( | ) | const |
Checks if this listener is the main listener.
Definition at line 57 of file SoundListenerComponent.cpp.
| void SoundListenerComponent::onPause | ( | void * | p | ) |
Pauses the component if the parent is paused.
Definition at line 101 of file SoundListenerComponent.cpp.
| void SoundListenerComponent::onPositionChange | ( | void * | p | ) |
Updates the position of the component after its parent has been updated.
Definition at line 85 of file SoundListenerComponent.cpp.
| void SoundListenerComponent::onRotationChange | ( | void * | p | ) |
Updates the rotation of the component after its parent has been updated.
Definition at line 93 of file SoundListenerComponent.cpp.
| void SoundListenerComponent::onUnPause | ( | void * | p | ) |
Unpauses the component if the parent is unpaused.
Definition at line 108 of file SoundListenerComponent.cpp.
| bool SoundListenerComponent::parseXML | ( | IXMLReader * | file, | |
| Entity * | entity | |||
| ) | [static] |
Parses for a SoundListenerComponent.
Definition at line 115 of file SoundListenerComponent.cpp.
| void SoundListenerComponent::setIsMainListener | ( | bool | value = true |
) |
Sets whether this listener is the main listener.
XML:
<isMainListener value="" />
| value | Value to enable or disable this option. |
Definition at line 63 of file SoundListenerComponent.cpp.
1.5.8