mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 02:36:31 +00:00
755 lines
45 KiB
HTML
755 lines
45 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Bomberman: BBM::SoundComponent Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Bomberman
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespaceBBM.html">BBM</a></li><li class="navelem"><a class="el" href="classBBM_1_1SoundComponent.html">SoundComponent</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-types">Public Types</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-attribs">Static Public Attributes</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> |
|
|
<a href="classBBM_1_1SoundComponent-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">BBM::SoundComponent Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>A basic Sound component.
|
|
<a href="classBBM_1_1SoundComponent.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="SoundComponent_8hpp_source.html">SoundComponent.hpp</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for BBM::SoundComponent:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><iframe scrolling="no" frameborder="0" src="classBBM_1_1SoundComponent__inherit__graph.svg" width="186" height="580"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
|
</div>
|
|
</div>
|
|
<div class="dynheader">
|
|
Collaboration diagram for BBM::SoundComponent:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><iframe scrolling="no" frameborder="0" src="classBBM_1_1SoundComponent__coll__graph.svg" width="194" height="1390"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
|
</div>
|
|
</div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
|
Public Types</h2></td></tr>
|
|
<tr class="memitem:af9163b5a962dea754d5fc5b10b359c50"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a> { <br />
|
|
  <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50a2d7daa78d790e1392346d0691555bc55">IDLE</a>,
|
|
<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50a19ca857bf66807003b580f800a29dd93">JUMP</a>,
|
|
<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50a07bb5ec1312b40654f5ae23a0a3c4143">BOMB</a>,
|
|
<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50a06627225de71467eba743d1ea816a9c3">MOVE</a>,
|
|
<br />
|
|
  <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50a3b12a5b814934deb1d58691782428ef8">HURT</a>,
|
|
<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50afd9c59fe2d91004a6e077ee83afc5ab8">THROW</a>,
|
|
<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50a9d3140269e47e99b3a47ebd63aded690">DEATH</a>
|
|
<br />
|
|
}</td></tr>
|
|
<tr class="memdesc:af9163b5a962dea754d5fc5b10b359c50"><td class="mdescLeft"> </td><td class="mdescRight">All sounds of the player. <a href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">More...</a><br /></td></tr>
|
|
<tr class="separator:af9163b5a962dea754d5fc5b10b359c50"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a8a5e700a82f2b306d469d9b319de81d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a8a5e700a82f2b306d469d9b319de81d0">setIndex</a> (<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a> index)</td></tr>
|
|
<tr class="memdesc:a8a5e700a82f2b306d469d9b319de81d0"><td class="mdescLeft"> </td><td class="mdescRight">to set what sound should be played <a href="classBBM_1_1SoundComponent.html#a8a5e700a82f2b306d469d9b319de81d0">More...</a><br /></td></tr>
|
|
<tr class="separator:a8a5e700a82f2b306d469d9b319de81d0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6e375db58e05e6b63aafaf10bcf06527"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a6e375db58e05e6b63aafaf10bcf06527">getIndex</a> ()</td></tr>
|
|
<tr class="memdesc:a6e375db58e05e6b63aafaf10bcf06527"><td class="mdescLeft"> </td><td class="mdescRight">to know which sound is selected <a href="classBBM_1_1SoundComponent.html#a6e375db58e05e6b63aafaf10bcf06527">More...</a><br /></td></tr>
|
|
<tr class="separator:a6e375db58e05e6b63aafaf10bcf06527"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a22010a97819623e9e2ed24eb76bc20a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a22010a97819623e9e2ed24eb76bc20a5">playSound</a> ()</td></tr>
|
|
<tr class="memdesc:a22010a97819623e9e2ed24eb76bc20a5"><td class="mdescLeft"> </td><td class="mdescRight">start sound <a href="classBBM_1_1SoundComponent.html#a22010a97819623e9e2ed24eb76bc20a5">More...</a><br /></td></tr>
|
|
<tr class="separator:a22010a97819623e9e2ed24eb76bc20a5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab7ed10a26d8ff5e967877b81ac49644a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#ab7ed10a26d8ff5e967877b81ac49644a">stopSound</a> ()</td></tr>
|
|
<tr class="memdesc:ab7ed10a26d8ff5e967877b81ac49644a"><td class="mdescLeft"> </td><td class="mdescRight">stop sound <a href="classBBM_1_1SoundComponent.html#ab7ed10a26d8ff5e967877b81ac49644a">More...</a><br /></td></tr>
|
|
<tr class="separator:ab7ed10a26d8ff5e967877b81ac49644a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a37c463496c8c408668ebaaa6f1ce7427"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a37c463496c8c408668ebaaa6f1ce7427">pauseSound</a> ()</td></tr>
|
|
<tr class="memdesc:a37c463496c8c408668ebaaa6f1ce7427"><td class="mdescLeft"> </td><td class="mdescRight">put Sound on hold <a href="classBBM_1_1SoundComponent.html#a37c463496c8c408668ebaaa6f1ce7427">More...</a><br /></td></tr>
|
|
<tr class="separator:a37c463496c8c408668ebaaa6f1ce7427"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2f29e953609ab5edfeb89106d09128d4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a2f29e953609ab5edfeb89106d09128d4">setVolume</a> (float)</td></tr>
|
|
<tr class="memdesc:a2f29e953609ab5edfeb89106d09128d4"><td class="mdescLeft"> </td><td class="mdescRight">set Sound volume <a href="classBBM_1_1SoundComponent.html#a2f29e953609ab5edfeb89106d09128d4">More...</a><br /></td></tr>
|
|
<tr class="separator:a2f29e953609ab5edfeb89106d09128d4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0e4da39bb04775a1de177e18fa124209"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a0e4da39bb04775a1de177e18fa124209">turnDownVolume</a> ()</td></tr>
|
|
<tr class="memdesc:a0e4da39bb04775a1de177e18fa124209"><td class="mdescLeft"> </td><td class="mdescRight">volume -= 0.1 <a href="classBBM_1_1SoundComponent.html#a0e4da39bb04775a1de177e18fa124209">More...</a><br /></td></tr>
|
|
<tr class="separator:a0e4da39bb04775a1de177e18fa124209"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2a5fa9f3d85d7b7d6a0191221096e8e9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a2a5fa9f3d85d7b7d6a0191221096e8e9">turnUpVolume</a> ()</td></tr>
|
|
<tr class="memdesc:a2a5fa9f3d85d7b7d6a0191221096e8e9"><td class="mdescLeft"> </td><td class="mdescRight">volume += 0.1 <a href="classBBM_1_1SoundComponent.html#a2a5fa9f3d85d7b7d6a0191221096e8e9">More...</a><br /></td></tr>
|
|
<tr class="separator:a2a5fa9f3d85d7b7d6a0191221096e8e9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1bfc07b0b9fdd24a6c54bee8881ce9ba"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a1bfc07b0b9fdd24a6c54bee8881ce9ba">setPitch</a> (float)</td></tr>
|
|
<tr class="memdesc:a1bfc07b0b9fdd24a6c54bee8881ce9ba"><td class="mdescLeft"> </td><td class="mdescRight">set pitch volume <a href="classBBM_1_1SoundComponent.html#a1bfc07b0b9fdd24a6c54bee8881ce9ba">More...</a><br /></td></tr>
|
|
<tr class="separator:a1bfc07b0b9fdd24a6c54bee8881ce9ba"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a56d758adb4e98a3fe1697a5fd56f2c6e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a56d758adb4e98a3fe1697a5fd56f2c6e">isPlaying</a> ()</td></tr>
|
|
<tr class="memdesc:a56d758adb4e98a3fe1697a5fd56f2c6e"><td class="mdescLeft"> </td><td class="mdescRight">is Sound playing <a href="classBBM_1_1SoundComponent.html#a56d758adb4e98a3fe1697a5fd56f2c6e">More...</a><br /></td></tr>
|
|
<tr class="separator:a56d758adb4e98a3fe1697a5fd56f2c6e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a04a856c645ec50bb91841abbf13fdf92"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWAL_1_1Component.html">WAL::Component</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a04a856c645ec50bb91841abbf13fdf92">clone</a> (<a class="el" href="classWAL_1_1Entity.html">WAL::Entity</a> &entity) const override</td></tr>
|
|
<tr class="memdesc:a04a856c645ec50bb91841abbf13fdf92"><td class="mdescLeft"> </td><td class="mdescRight">Clone a component for another or the same entity. <a href="classBBM_1_1SoundComponent.html#a04a856c645ec50bb91841abbf13fdf92">More...</a><br /></td></tr>
|
|
<tr class="separator:a04a856c645ec50bb91841abbf13fdf92"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2d143c483bfdb89679f430c105ed6947"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a2d143c483bfdb89679f430c105ed6947">SoundComponent</a> (<a class="el" href="classWAL_1_1Entity.html">WAL::Entity</a> &entity, const std::map< <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, std::string > &, bool isLonely=false)</td></tr>
|
|
<tr class="memdesc:a2d143c483bfdb89679f430c105ed6947"><td class="mdescLeft"> </td><td class="mdescRight">Create a new <a class="el" href="classBBM_1_1SoundComponent.html" title="A basic Sound component.">SoundComponent</a> at a certain Sound. <a href="classBBM_1_1SoundComponent.html#a2d143c483bfdb89679f430c105ed6947">More...</a><br /></td></tr>
|
|
<tr class="separator:a2d143c483bfdb89679f430c105ed6947"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a85b7b8cae2d7690cad465eec00804966"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a85b7b8cae2d7690cad465eec00804966">SoundComponent</a> (const <a class="el" href="classBBM_1_1SoundComponent.html">SoundComponent</a> &)=default</td></tr>
|
|
<tr class="memdesc:a85b7b8cae2d7690cad465eec00804966"><td class="mdescLeft"> </td><td class="mdescRight">A Sound component is copy constructable. <a href="classBBM_1_1SoundComponent.html#a85b7b8cae2d7690cad465eec00804966">More...</a><br /></td></tr>
|
|
<tr class="separator:a85b7b8cae2d7690cad465eec00804966"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a605bb26f754816b7c6faddf939fa6841"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a605bb26f754816b7c6faddf939fa6841">~SoundComponent</a> () override=default</td></tr>
|
|
<tr class="memdesc:a605bb26f754816b7c6faddf939fa6841"><td class="mdescLeft"> </td><td class="mdescRight">A default destructor. <a href="classBBM_1_1SoundComponent.html#a605bb26f754816b7c6faddf939fa6841">More...</a><br /></td></tr>
|
|
<tr class="separator:a605bb26f754816b7c6faddf939fa6841"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a801d724a24f65c8cb4df1fb7bb8277ea"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classBBM_1_1SoundComponent.html">SoundComponent</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a801d724a24f65c8cb4df1fb7bb8277ea">operator=</a> (const <a class="el" href="classBBM_1_1SoundComponent.html">SoundComponent</a> &)=delete</td></tr>
|
|
<tr class="memdesc:a801d724a24f65c8cb4df1fb7bb8277ea"><td class="mdescLeft"> </td><td class="mdescRight">A Sound component is not assignable. <a href="classBBM_1_1SoundComponent.html#a801d724a24f65c8cb4df1fb7bb8277ea">More...</a><br /></td></tr>
|
|
<tr class="separator:a801d724a24f65c8cb4df1fb7bb8277ea"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pub_methods_classWAL_1_1Component"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classWAL_1_1Component')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classWAL_1_1Component.html">WAL::Component</a></td></tr>
|
|
<tr class="memitem:a155fb97f22714a0f489af7442d7d3253 inherit pub_methods_classWAL_1_1Component"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWAL_1_1Component.html">Component</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWAL_1_1Component.html#a155fb97f22714a0f489af7442d7d3253">operator=</a> (const <a class="el" href="classWAL_1_1Component.html">Component</a> &)=delete</td></tr>
|
|
<tr class="memdesc:a155fb97f22714a0f489af7442d7d3253 inherit pub_methods_classWAL_1_1Component"><td class="mdescLeft"> </td><td class="mdescRight">A component can't be assigned. <a href="classWAL_1_1Component.html#a155fb97f22714a0f489af7442d7d3253">More...</a><br /></td></tr>
|
|
<tr class="separator:a155fb97f22714a0f489af7442d7d3253 inherit pub_methods_classWAL_1_1Component"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3d8e13fdc53a63b0b1f8d15576f98cf8 inherit pub_methods_classWAL_1_1Component"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classWAL_1_1Component.html#a3d8e13fdc53a63b0b1f8d15576f98cf8">~Component</a> ()=default</td></tr>
|
|
<tr class="memdesc:a3d8e13fdc53a63b0b1f8d15576f98cf8 inherit pub_methods_classWAL_1_1Component"><td class="mdescLeft"> </td><td class="mdescRight">A virtual destructor. <a href="classWAL_1_1Component.html#a3d8e13fdc53a63b0b1f8d15576f98cf8">More...</a><br /></td></tr>
|
|
<tr class="separator:a3d8e13fdc53a63b0b1f8d15576f98cf8 inherit pub_methods_classWAL_1_1Component"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4acae0960f4232caf8395b2465dde8cc inherit pub_methods_classWAL_1_1Component"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWAL_1_1Component.html#a4acae0960f4232caf8395b2465dde8cc">onStart</a> ()</td></tr>
|
|
<tr class="memdesc:a4acae0960f4232caf8395b2465dde8cc inherit pub_methods_classWAL_1_1Component"><td class="mdescLeft"> </td><td class="mdescRight">The entity or this component has just been enabled. <a href="classWAL_1_1Component.html#a4acae0960f4232caf8395b2465dde8cc">More...</a><br /></td></tr>
|
|
<tr class="separator:a4acae0960f4232caf8395b2465dde8cc inherit pub_methods_classWAL_1_1Component"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a0f3f4fe54fd06de1e685835977fef050 inherit pub_methods_classWAL_1_1Component"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWAL_1_1Component.html#a0f3f4fe54fd06de1e685835977fef050">onStop</a> ()</td></tr>
|
|
<tr class="memdesc:a0f3f4fe54fd06de1e685835977fef050 inherit pub_methods_classWAL_1_1Component"><td class="mdescLeft"> </td><td class="mdescRight">The entity or this component has just been disable. <a href="classWAL_1_1Component.html#a0f3f4fe54fd06de1e685835977fef050">More...</a><br /></td></tr>
|
|
<tr class="separator:a0f3f4fe54fd06de1e685835977fef050 inherit pub_methods_classWAL_1_1Component"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
|
|
Static Public Attributes</h2></td></tr>
|
|
<tr class="memitem:a684b357467bfcf7ddaa01aea71f47b25"><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a684b357467bfcf7ddaa01aea71f47b25">volume</a> = 0.75</td></tr>
|
|
<tr class="memdesc:a684b357467bfcf7ddaa01aea71f47b25"><td class="mdescLeft"> </td><td class="mdescRight">Volume of the sounds. <a href="classBBM_1_1SoundComponent.html#a684b357467bfcf7ddaa01aea71f47b25">More...</a><br /></td></tr>
|
|
<tr class="separator:a684b357467bfcf7ddaa01aea71f47b25"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
|
|
Private Attributes</h2></td></tr>
|
|
<tr class="memitem:a29013d1e4d03c27e9524220b1af005b0"><td class="memItemLeft" align="right" valign="top">std::map< <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, std::shared_ptr< <a class="el" href="classRAY_1_1Audio_1_1Sound.html">RAY::Audio::Sound</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#a29013d1e4d03c27e9524220b1af005b0">_soundList</a></td></tr>
|
|
<tr class="memdesc:a29013d1e4d03c27e9524220b1af005b0"><td class="mdescLeft"> </td><td class="mdescRight">Sounds of this entity. <a href="classBBM_1_1SoundComponent.html#a29013d1e4d03c27e9524220b1af005b0">More...</a><br /></td></tr>
|
|
<tr class="separator:a29013d1e4d03c27e9524220b1af005b0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:adaef638b23f9400703599e08a597eb62"><td class="memItemLeft" align="right" valign="top">std::map< <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#adaef638b23f9400703599e08a597eb62">_isSoundLoad</a></td></tr>
|
|
<tr class="memdesc:adaef638b23f9400703599e08a597eb62"><td class="mdescLeft"> </td><td class="mdescRight">map to know if sound is loaded <a href="classBBM_1_1SoundComponent.html#adaef638b23f9400703599e08a597eb62">More...</a><br /></td></tr>
|
|
<tr class="separator:adaef638b23f9400703599e08a597eb62"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aab5fc199afaea0fe8a843f1feb1fc110"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#aab5fc199afaea0fe8a843f1feb1fc110">_isLonely</a></td></tr>
|
|
<tr class="memdesc:aab5fc199afaea0fe8a843f1feb1fc110"><td class="mdescLeft"> </td><td class="mdescRight">to know if cache is needed <a href="classBBM_1_1SoundComponent.html#aab5fc199afaea0fe8a843f1feb1fc110">More...</a><br /></td></tr>
|
|
<tr class="separator:aab5fc199afaea0fe8a843f1feb1fc110"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aba055873cf0b2b895b8fafe51d21a7a5"><td class="memItemLeft" align="right" valign="top">const std::map< <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#aba055873cf0b2b895b8fafe51d21a7a5">_soundPath</a></td></tr>
|
|
<tr class="memdesc:aba055873cf0b2b895b8fafe51d21a7a5"><td class="mdescLeft"> </td><td class="mdescRight">All sounds path. <a href="classBBM_1_1SoundComponent.html#aba055873cf0b2b895b8fafe51d21a7a5">More...</a><br /></td></tr>
|
|
<tr class="separator:aba055873cf0b2b895b8fafe51d21a7a5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aff3d06fd1ba3fbf214ece94d35170ca9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classBBM_1_1SoundComponent.html#aff3d06fd1ba3fbf214ece94d35170ca9">_soundIndex</a></td></tr>
|
|
<tr class="memdesc:aff3d06fd1ba3fbf214ece94d35170ca9"><td class="mdescLeft"> </td><td class="mdescRight">SoundIndex. <a href="classBBM_1_1SoundComponent.html#aff3d06fd1ba3fbf214ece94d35170ca9">More...</a><br /></td></tr>
|
|
<tr class="separator:aff3d06fd1ba3fbf214ece94d35170ca9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
|
|
Additional Inherited Members</h2></td></tr>
|
|
<tr class="inherit_header pro_methods_classWAL_1_1Component"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classWAL_1_1Component')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classWAL_1_1Component.html">WAL::Component</a></td></tr>
|
|
<tr class="memitem:ad27cb4b0bdc95b6245f6b5a8c56cc78a inherit pro_methods_classWAL_1_1Component"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWAL_1_1Component.html#ad27cb4b0bdc95b6245f6b5a8c56cc78a">Component</a> (<a class="el" href="classWAL_1_1Entity.html">Entity</a> &entity)</td></tr>
|
|
<tr class="memdesc:ad27cb4b0bdc95b6245f6b5a8c56cc78a inherit pro_methods_classWAL_1_1Component"><td class="mdescLeft"> </td><td class="mdescRight">A component can't be instantiated, it should be derived. <a href="classWAL_1_1Component.html#ad27cb4b0bdc95b6245f6b5a8c56cc78a">More...</a><br /></td></tr>
|
|
<tr class="separator:ad27cb4b0bdc95b6245f6b5a8c56cc78a inherit pro_methods_classWAL_1_1Component"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3a3306df3733bfa77c70d789b650984b inherit pro_methods_classWAL_1_1Component"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWAL_1_1Component.html#a3a3306df3733bfa77c70d789b650984b">Component</a> (const <a class="el" href="classWAL_1_1Component.html">Component</a> &)=default</td></tr>
|
|
<tr class="memdesc:a3a3306df3733bfa77c70d789b650984b inherit pro_methods_classWAL_1_1Component"><td class="mdescLeft"> </td><td class="mdescRight">A component can't be instantiated, it should be derived. <a href="classWAL_1_1Component.html#a3a3306df3733bfa77c70d789b650984b">More...</a><br /></td></tr>
|
|
<tr class="separator:a3a3306df3733bfa77c70d789b650984b inherit pro_methods_classWAL_1_1Component"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pro_attribs_classWAL_1_1Component"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classWAL_1_1Component')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classWAL_1_1Component.html">WAL::Component</a></td></tr>
|
|
<tr class="memitem:a3841f7c8cc4eeb9d1e97b3182976d89f inherit pro_attribs_classWAL_1_1Component"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWAL_1_1Entity.html">Entity</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWAL_1_1Component.html#a3841f7c8cc4eeb9d1e97b3182976d89f">_entity</a></td></tr>
|
|
<tr class="memdesc:a3841f7c8cc4eeb9d1e97b3182976d89f inherit pro_attribs_classWAL_1_1Component"><td class="mdescLeft"> </td><td class="mdescRight">The entity that own this component. <a href="classWAL_1_1Component.html#a3841f7c8cc4eeb9d1e97b3182976d89f">More...</a><br /></td></tr>
|
|
<tr class="separator:a3841f7c8cc4eeb9d1e97b3182976d89f inherit pro_attribs_classWAL_1_1Component"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>A basic Sound component. </p>
|
|
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
|
|
<a id="af9163b5a962dea754d5fc5b10b359c50"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#af9163b5a962dea754d5fc5b10b359c50">◆ </a></span>SoundIndex</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">BBM::SoundComponent::SoundIndex</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>All sounds of the player. </p>
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="af9163b5a962dea754d5fc5b10b359c50a2d7daa78d790e1392346d0691555bc55"></a>IDLE </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="af9163b5a962dea754d5fc5b10b359c50a19ca857bf66807003b580f800a29dd93"></a>JUMP </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="af9163b5a962dea754d5fc5b10b359c50a07bb5ec1312b40654f5ae23a0a3c4143"></a>BOMB </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="af9163b5a962dea754d5fc5b10b359c50a06627225de71467eba743d1ea816a9c3"></a>MOVE </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="af9163b5a962dea754d5fc5b10b359c50a3b12a5b814934deb1d58691782428ef8"></a>HURT </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="af9163b5a962dea754d5fc5b10b359c50afd9c59fe2d91004a6e077ee83afc5ab8"></a>THROW </td><td class="fielddoc"></td></tr>
|
|
<tr><td class="fieldname"><a id="af9163b5a962dea754d5fc5b10b359c50a9d3140269e47e99b3a47ebd63aded690"></a>DEATH </td><td class="fielddoc"></td></tr>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a2d143c483bfdb89679f430c105ed6947"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2d143c483bfdb89679f430c105ed6947">◆ </a></span>SoundComponent() <span class="overload">[1/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">BBM::SoundComponent::SoundComponent </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classWAL_1_1Entity.html">WAL::Entity</a> & </td>
|
|
<td class="paramname"><em>entity</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const std::map< <a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, std::string > & </td>
|
|
<td class="paramname">, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>isLonely</em> = <code>false</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create a new <a class="el" href="classBBM_1_1SoundComponent.html" title="A basic Sound component.">SoundComponent</a> at a certain Sound. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a85b7b8cae2d7690cad465eec00804966"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a85b7b8cae2d7690cad465eec00804966">◆ </a></span>SoundComponent() <span class="overload">[2/2]</span></h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">BBM::SoundComponent::SoundComponent </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classBBM_1_1SoundComponent.html">SoundComponent</a> & </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>A Sound component is copy constructable. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a605bb26f754816b7c6faddf939fa6841"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a605bb26f754816b7c6faddf939fa6841">◆ </a></span>~SoundComponent()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">BBM::SoundComponent::~SoundComponent </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">default</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>A default destructor. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="a04a856c645ec50bb91841abbf13fdf92"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a04a856c645ec50bb91841abbf13fdf92">◆ </a></span>clone()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classWAL_1_1Component.html">WAL::Component</a> * BBM::SoundComponent::clone </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classWAL_1_1Entity.html">WAL::Entity</a> & </td>
|
|
<td class="paramname"><em>entity</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Clone a component for another or the same entity. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">entity</td><td>The entity that owns the ne component. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p>Implements <a class="el" href="classWAL_1_1Component.html#a0bbee4f657e10fd190a28d15afe63e93">WAL::Component</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a6e375db58e05e6b63aafaf10bcf06527"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a6e375db58e05e6b63aafaf10bcf06527">◆ </a></span>getIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundComponent::SoundIndex</a> BBM::SoundComponent::getIndex </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>to know which sound is selected </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a56d758adb4e98a3fe1697a5fd56f2c6e"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a56d758adb4e98a3fe1697a5fd56f2c6e">◆ </a></span>isPlaying()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool BBM::SoundComponent::isPlaying </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>is Sound playing </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a801d724a24f65c8cb4df1fb7bb8277ea"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a801d724a24f65c8cb4df1fb7bb8277ea">◆ </a></span>operator=()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classBBM_1_1SoundComponent.html">SoundComponent</a>& BBM::SoundComponent::operator= </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classBBM_1_1SoundComponent.html">SoundComponent</a> & </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>A Sound component is not assignable. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a37c463496c8c408668ebaaa6f1ce7427"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a37c463496c8c408668ebaaa6f1ce7427">◆ </a></span>pauseSound()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::pauseSound </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>put Sound on hold </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a22010a97819623e9e2ed24eb76bc20a5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a22010a97819623e9e2ed24eb76bc20a5">◆ </a></span>playSound()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::playSound </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>start sound </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a8a5e700a82f2b306d469d9b319de81d0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a8a5e700a82f2b306d469d9b319de81d0">◆ </a></span>setIndex()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::setIndex </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a> </td>
|
|
<td class="paramname"><em>index</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>to set what sound should be played </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a1bfc07b0b9fdd24a6c54bee8881ce9ba"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a1bfc07b0b9fdd24a6c54bee8881ce9ba">◆ </a></span>setPitch()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::setPitch </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>pitch</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>set pitch volume </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2f29e953609ab5edfeb89106d09128d4"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2f29e953609ab5edfeb89106d09128d4">◆ </a></span>setVolume()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::setVolume </td>
|
|
<td>(</td>
|
|
<td class="paramtype">float </td>
|
|
<td class="paramname"><em>volumeUpdate</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>set Sound volume </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ab7ed10a26d8ff5e967877b81ac49644a"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab7ed10a26d8ff5e967877b81ac49644a">◆ </a></span>stopSound()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::stopSound </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>stop sound </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a0e4da39bb04775a1de177e18fa124209"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a0e4da39bb04775a1de177e18fa124209">◆ </a></span>turnDownVolume()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::turnDownVolume </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>volume -= 0.1 </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a2a5fa9f3d85d7b7d6a0191221096e8e9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a2a5fa9f3d85d7b7d6a0191221096e8e9">◆ </a></span>turnUpVolume()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void BBM::SoundComponent::turnUpVolume </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>volume += 0.1 </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a id="aab5fc199afaea0fe8a843f1feb1fc110"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aab5fc199afaea0fe8a843f1feb1fc110">◆ </a></span>_isLonely</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool BBM::SoundComponent::_isLonely</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>to know if cache is needed </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="adaef638b23f9400703599e08a597eb62"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#adaef638b23f9400703599e08a597eb62">◆ </a></span>_isSoundLoad</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::map<<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, bool> BBM::SoundComponent::_isSoundLoad</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>map to know if sound is loaded </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aff3d06fd1ba3fbf214ece94d35170ca9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aff3d06fd1ba3fbf214ece94d35170ca9">◆ </a></span>_soundIndex</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a> BBM::SoundComponent::_soundIndex</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>SoundIndex. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a29013d1e4d03c27e9524220b1af005b0"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a29013d1e4d03c27e9524220b1af005b0">◆ </a></span>_soundList</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::map<<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, std::shared_ptr<<a class="el" href="classRAY_1_1Audio_1_1Sound.html">RAY::Audio::Sound</a>> > BBM::SoundComponent::_soundList</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sounds of this entity. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="aba055873cf0b2b895b8fafe51d21a7a5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#aba055873cf0b2b895b8fafe51d21a7a5">◆ </a></span>_soundPath</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const std::map<<a class="el" href="classBBM_1_1SoundComponent.html#af9163b5a962dea754d5fc5b10b359c50">SoundIndex</a>, std::string> BBM::SoundComponent::_soundPath</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>All sounds path. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a684b357467bfcf7ddaa01aea71f47b25"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a684b357467bfcf7ddaa01aea71f47b25">◆ </a></span>volume</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">float BBM::SoundComponent::volume = 0.75</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Volume of the sounds. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li>sources/Component/Sound/<a class="el" href="SoundComponent_8hpp_source.html">SoundComponent.hpp</a></li>
|
|
<li>sources/Component/Sound/<a class="el" href="SoundComponent_8cpp.html">SoundComponent.cpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|