199 lines
38 KiB
HTML
199 lines
38 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" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.7"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Rally Rush: src/car_player.hpp Source File</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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">Rally Rush
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.7 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(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">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">car_player.hpp</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="car__player_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef CAR_PLAYER_HPP</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define CAR_PLAYER_HPP</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include "<a class="code" href="car__physics_8hpp.html">car_physics.hpp</a>"</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include "godot_cpp/classes/camera3d.hpp"</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include "godot_cpp/classes/packed_scene.hpp"</span></div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include "utils/player.hpp"</span></div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <godot_cpp/classes/input_event.hpp></span></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include <godot_cpp/classes/rigid_body3d.hpp></span></div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include <godot_cpp/classes/collision_shape3d.hpp></span></div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegodot.html">godot</a> {</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html"> 17</a></span><span class="keyword">class </span><a class="code hl_class" href="classgodot_1_1CarPlayer.html">CarPlayer</a> : <span class="keyword">public</span> <a class="code hl_class" href="classgodot_1_1CarPhysics.html">CarPhysics</a>,</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">public</span> IPlayer {</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a59c45170658a385bb6b74cbbde71bb4e"> 19</a></span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a59c45170658a385bb6b74cbbde71bb4e">GDCLASS</a>(<a class="code hl_class" href="classgodot_1_1CarPlayer.html">CarPlayer</a>, <a class="code hl_class" href="classgodot_1_1CarPhysics.html">CarPhysics</a>);</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#ac7fa943254a1102a1754867c836a7665">_bind_methods</a>();</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">public</span>:</div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#ae260f5a8e5617de01cebf46fc6a66ed5">_ready</a>() <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#ab76ecbf219806f6dfb945751b17a2d7b">_process</a>(<span class="keywordtype">double</span> delta_time) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a4b4178b34bafb8583aa2f82faec5fe11">setup_player_input</a>(PlayerInput *input) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#ad7fe9854e03ce68748c569a091ee8af8">spawn_at_position</a>(Transform3D <span class="keyword">const</span> &transform) <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">virtual</span> Node *<a class="code hl_function" href="classgodot_1_1CarPlayer.html#a955bc02492b99441e4bfaaeaf604bf53">to_node</a>() <span class="keyword">override</span>;</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a73cd4ea5237aee5b55524e3431a44f79">on_steer</a>(Ref<InputEvent> event, <span class="keywordtype">float</span> value);</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a39e50012fafb7511e8b3ea87d25f07e4">on_brake</a>(Ref<InputEvent> event, <span class="keywordtype">float</span> value);</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a29b3e6f4ac1fd595dfed2c97160bcc52">on_accelerate</a>(Ref<InputEvent> event, <span class="keywordtype">float</span> value);</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a2eb93ae31f50475464b17c60a0937f1d">damage</a>();</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#aeda389642caef8579d58cdf2b5a69dab">destroy_all_powerups</a>();</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a5b07d3395b4706a7d38578f7c419f7e2">activate_powerup</a>(Ref<PackedScene> scene);</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a92690f4859bb80335f17fcd6dbec1d27">activate_turret</a>();</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#aadc98cb2f6258f5be70c2918b99eeca2">activate_beacon</a>();</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#ad7cdaae032749f449247fe47fea75815">activate_shield</a>();</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#ae49d24b62e806afb971c6406aa8d50d3">set_turret_scene</a>(Ref<PackedScene> scene);</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> Ref<PackedScene> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a3fce1bfbfe870e67817fb151bca5a228">get_turret_scene</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#a0349ba1feac1d027824cc91e2007ed04">set_beacon_scene</a>(Ref<PackedScene> scene);</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> Ref<PackedScene> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#aad15e8a1e12163074d657958c48e5607">get_beacon_scene</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#af46e4e888d81935cc86d553c25878476">set_shield_scene</a>(Ref<PackedScene> scene);</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> Ref<PackedScene> <a class="code hl_function" href="classgodot_1_1CarPlayer.html#af266f0e3e3de4ad53985592554cce35e">get_shield_scene</a>() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="keyword">private</span>:</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a45a21b4fb545e42e9628902104aa5958"> 76</a></span> <span class="keywordtype">int</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a45a21b4fb545e42e9628902104aa5958">health</a>{5};</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a64dd430512452f7238e25ec73463bdd5"> 78</a></span> <span class="keywordtype">double</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a64dd430512452f7238e25ec73463bdd5">end_of_powerup</a>{0.0};</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#afa93feb6fa78dcebb5162ddf428f267d"> 80</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#afa93feb6fa78dcebb5162ddf428f267d">takes_damage</a>{<span class="keyword">true</span>};</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#abc06b005242155ee954e3e6b7bbe1066"> 82</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#abc06b005242155ee954e3e6b7bbe1066">grace_timer_end</a>{0.f};</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#af3b2b99d83091352bc5e8dc7358890be"> 85</a></span> Node3D *<a class="code hl_variable" href="classgodot_1_1CarPlayer.html#af3b2b99d83091352bc5e8dc7358890be">roof_slot</a>{<span class="keyword">nullptr</span>};</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a9f0d5b6155b03b0926dbcec2479b6309"> 87</a></span> Camera3D *<a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a9f0d5b6155b03b0926dbcec2479b6309">camera</a>{<span class="keyword">nullptr</span>};</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#addf2ecd3b8e64760f06059f47218d6e8"> 90</a></span> Ref<PackedScene> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#addf2ecd3b8e64760f06059f47218d6e8">turret</a>;</div>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a8042409f1c93f8dd869618235c07fb16"> 92</a></span> Ref<PackedScene> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a8042409f1c93f8dd869618235c07fb16">beacon</a>;</div>
|
|
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a5c1eea683d71b38ee679d3b149f95e87"> 94</a></span> Ref<PackedScene> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a5c1eea683d71b38ee679d3b149f95e87">shield</a>;</div>
|
|
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a33a6afe27c0947e4a3f6d85e3b2be776"> 97</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a33a6afe27c0947e4a3f6d85e3b2be776">max_speed</a>{40.f};</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a55fe5e0f06088876795c0449146d269e"> 99</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a55fe5e0f06088876795c0449146d269e">steering_factor</a>{0.7f};</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a5a869fbe45c0a569a58e1aeeebd406b7"> 101</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a5a869fbe45c0a569a58e1aeeebd406b7">powerup_duration</a>{10.f};</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#ac0bfa88625a6f51a5b27873126ab8e38"> 103</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#ac0bfa88625a6f51a5b27873126ab8e38">camera_distance</a>{4.f};</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a7bdef5b6d63e6eb60eaf36645316ddb5"> 105</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a7bdef5b6d63e6eb60eaf36645316ddb5">camera_height</a>{2.f};</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a1c2282b4baa2ed1cea4be2e74192b479"> 107</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a1c2282b4baa2ed1cea4be2e74192b479">camera_fullspeed_fov</a>{90.f};</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#a4e08f1f007b441782500ce15a9a5da1e"> 109</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#a4e08f1f007b441782500ce15a9a5da1e">camera_stopped_fov</a>{70.f};</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#afa06d59d0b669ff5efee74c683cb2b4d"> 111</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#afa06d59d0b669ff5efee74c683cb2b4d">fov_lerp_delta</a>{40.f};</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#ad15a082d87be085b4cfe609ef3fe928d"> 113</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#ad15a082d87be085b4cfe609ef3fe928d">grace_time</a>{1.f};</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classgodot_1_1CarPlayer.html#afcb3ee548cd66fbd9305c6cd40eb7067"> 115</a></span> <span class="keywordtype">float</span> <span class="keyword">const</span> <a class="code hl_variable" href="classgodot_1_1CarPlayer.html#afcb3ee548cd66fbd9305c6cd40eb7067">grace_time_flash</a>{0.1f};</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span>};</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span>};</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span><span class="preprocessor">#endif </span><span class="comment">// !CAR_PLAYER_HPP</span></div>
|
|
<div class="ttc" id="acar__physics_8hpp_html"><div class="ttname"><a href="car__physics_8hpp.html">car_physics.hpp</a></div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPhysics_html"><div class="ttname"><a href="classgodot_1_1CarPhysics.html">godot::CarPhysics</a></div><div class="ttdoc">Subclass Sandbox for car physics. Uses _integrate_forces and local_velocity to abstract the behaviour...</div><div class="ttdef"><b>Definition</b> car_physics.hpp:13</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html"><div class="ttname"><a href="classgodot_1_1CarPlayer.html">godot::CarPlayer</a></div><div class="ttdoc">Sandboxed subclass of CarPhysics.</div><div class="ttdef"><b>Definition</b> car_player.hpp:18</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a0349ba1feac1d027824cc91e2007ed04"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a0349ba1feac1d027824cc91e2007ed04">godot::CarPlayer::set_beacon_scene</a></div><div class="ttdeci">void set_beacon_scene(Ref< PackedScene > scene)</div><div class="ttdoc">The object representing the beacon pickup.</div><div class="ttdef"><b>Definition</b> car_player.cpp:115</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a1c2282b4baa2ed1cea4be2e74192b479"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a1c2282b4baa2ed1cea4be2e74192b479">godot::CarPlayer::camera_fullspeed_fov</a></div><div class="ttdeci">float const camera_fullspeed_fov</div><div class="ttdoc">The FOV of the camera when the car is traveling at max_speed.</div><div class="ttdef"><b>Definition</b> car_player.hpp:107</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a29b3e6f4ac1fd595dfed2c97160bcc52"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a29b3e6f4ac1fd595dfed2c97160bcc52">godot::CarPlayer::on_accelerate</a></div><div class="ttdeci">void on_accelerate(Ref< InputEvent > event, float value)</div><div class="ttdoc">Input callback for the accelerate key.</div><div class="ttdef"><b>Definition</b> car_player.cpp:62</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a2eb93ae31f50475464b17c60a0937f1d"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a2eb93ae31f50475464b17c60a0937f1d">godot::CarPlayer::damage</a></div><div class="ttdeci">void damage()</div><div class="ttdoc">Take 1 damage.</div><div class="ttdef"><b>Definition</b> car_player.cpp:66</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a33a6afe27c0947e4a3f6d85e3b2be776"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a33a6afe27c0947e4a3f6d85e3b2be776">godot::CarPlayer::max_speed</a></div><div class="ttdeci">float const max_speed</div><div class="ttdoc">Target speed when accelerate is pressed.</div><div class="ttdef"><b>Definition</b> car_player.hpp:97</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a39e50012fafb7511e8b3ea87d25f07e4"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a39e50012fafb7511e8b3ea87d25f07e4">godot::CarPlayer::on_brake</a></div><div class="ttdeci">void on_brake(Ref< InputEvent > event, float value)</div><div class="ttdoc">Input callback for the brake key.</div><div class="ttdef"><b>Definition</b> car_player.cpp:58</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a3fce1bfbfe870e67817fb151bca5a228"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a3fce1bfbfe870e67817fb151bca5a228">godot::CarPlayer::get_turret_scene</a></div><div class="ttdeci">Ref< PackedScene > get_turret_scene() const</div><div class="ttdoc">The object representing the turret pickup.</div><div class="ttdef"><b>Definition</b> car_player.cpp:111</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a45a21b4fb545e42e9628902104aa5958"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a45a21b4fb545e42e9628902104aa5958">godot::CarPlayer::health</a></div><div class="ttdeci">int health</div><div class="ttdoc">Amount of hits the player's car can still take.</div><div class="ttdef"><b>Definition</b> car_player.hpp:76</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a4b4178b34bafb8583aa2f82faec5fe11"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a4b4178b34bafb8583aa2f82faec5fe11">godot::CarPlayer::setup_player_input</a></div><div class="ttdeci">virtual void setup_player_input(PlayerInput *input) override</div><div class="ttdoc">Initialize player input callbacks.</div><div class="ttdef"><b>Definition</b> car_player.cpp:41</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a4e08f1f007b441782500ce15a9a5da1e"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a4e08f1f007b441782500ce15a9a5da1e">godot::CarPlayer::camera_stopped_fov</a></div><div class="ttdeci">float const camera_stopped_fov</div><div class="ttdoc">FOV of the camera when the car is not moving.</div><div class="ttdef"><b>Definition</b> car_player.hpp:109</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a55fe5e0f06088876795c0449146d269e"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a55fe5e0f06088876795c0449146d269e">godot::CarPlayer::steering_factor</a></div><div class="ttdeci">float const steering_factor</div><div class="ttdoc">Amount of steering to apply based on input.</div><div class="ttdef"><b>Definition</b> car_player.hpp:99</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a59c45170658a385bb6b74cbbde71bb4e"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a59c45170658a385bb6b74cbbde71bb4e">godot::CarPlayer::GDCLASS</a></div><div class="ttdeci">GDCLASS(CarPlayer, CarPhysics)</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a5a869fbe45c0a569a58e1aeeebd406b7"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a5a869fbe45c0a569a58e1aeeebd406b7">godot::CarPlayer::powerup_duration</a></div><div class="ttdeci">float const powerup_duration</div><div class="ttdoc">Duration of a powerup after it is picked up.</div><div class="ttdef"><b>Definition</b> car_player.hpp:101</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a5b07d3395b4706a7d38578f7c419f7e2"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a5b07d3395b4706a7d38578f7c419f7e2">godot::CarPlayer::activate_powerup</a></div><div class="ttdeci">void activate_powerup(Ref< PackedScene > scene)</div><div class="ttdoc">Destroy all children and activate a new powerup.</div><div class="ttdef"><b>Definition</b> car_player.cpp:88</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a5c1eea683d71b38ee679d3b149f95e87"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a5c1eea683d71b38ee679d3b149f95e87">godot::CarPlayer::shield</a></div><div class="ttdeci">Ref< PackedScene > shield</div><div class="ttdoc">The ramming shield powerup scene.</div><div class="ttdef"><b>Definition</b> car_player.hpp:94</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a64dd430512452f7238e25ec73463bdd5"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a64dd430512452f7238e25ec73463bdd5">godot::CarPlayer::end_of_powerup</a></div><div class="ttdeci">double end_of_powerup</div><div class="ttdoc">The time at which the current powerup will be deactivated.</div><div class="ttdef"><b>Definition</b> car_player.hpp:78</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a73cd4ea5237aee5b55524e3431a44f79"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a73cd4ea5237aee5b55524e3431a44f79">godot::CarPlayer::on_steer</a></div><div class="ttdeci">void on_steer(Ref< InputEvent > event, float value)</div><div class="ttdoc">Input callback for the steering axis.</div><div class="ttdef"><b>Definition</b> car_player.cpp:54</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a7bdef5b6d63e6eb60eaf36645316ddb5"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a7bdef5b6d63e6eb60eaf36645316ddb5">godot::CarPlayer::camera_height</a></div><div class="ttdeci">float const camera_height</div><div class="ttdoc">Height the camera should be at relative to the pivot.</div><div class="ttdef"><b>Definition</b> car_player.hpp:105</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a8042409f1c93f8dd869618235c07fb16"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a8042409f1c93f8dd869618235c07fb16">godot::CarPlayer::beacon</a></div><div class="ttdeci">Ref< PackedScene > beacon</div><div class="ttdoc">The hacking beacon powerup scene.</div><div class="ttdef"><b>Definition</b> car_player.hpp:92</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a92690f4859bb80335f17fcd6dbec1d27"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a92690f4859bb80335f17fcd6dbec1d27">godot::CarPlayer::activate_turret</a></div><div class="ttdeci">void activate_turret()</div><div class="ttdoc">Destroy all powerups and spawn a turret.</div><div class="ttdef"><b>Definition</b> car_player.cpp:96</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a955bc02492b99441e4bfaaeaf604bf53"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a955bc02492b99441e4bfaaeaf604bf53">godot::CarPlayer::to_node</a></div><div class="ttdeci">virtual Node * to_node() override</div><div class="ttdoc">Convert to node.</div><div class="ttdef"><b>Definition</b> car_player.cpp:52</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_a9f0d5b6155b03b0926dbcec2479b6309"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#a9f0d5b6155b03b0926dbcec2479b6309">godot::CarPlayer::camera</a></div><div class="ttdeci">Camera3D * camera</div><div class="ttdoc">The camera.</div><div class="ttdef"><b>Definition</b> car_player.hpp:87</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_aad15e8a1e12163074d657958c48e5607"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#aad15e8a1e12163074d657958c48e5607">godot::CarPlayer::get_beacon_scene</a></div><div class="ttdeci">Ref< PackedScene > get_beacon_scene() const</div><div class="ttdoc">The object representing the beacon pickup.</div><div class="ttdef"><b>Definition</b> car_player.cpp:119</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_aadc98cb2f6258f5be70c2918b99eeca2"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#aadc98cb2f6258f5be70c2918b99eeca2">godot::CarPlayer::activate_beacon</a></div><div class="ttdeci">void activate_beacon()</div><div class="ttdoc">Destroy all powerups and spawn a beacon.</div><div class="ttdef"><b>Definition</b> car_player.cpp:100</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ab76ecbf219806f6dfb945751b17a2d7b"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ab76ecbf219806f6dfb945751b17a2d7b">godot::CarPlayer::_process</a></div><div class="ttdeci">virtual void _process(double delta_time) override</div><div class="ttdoc">Update powerup and grace period timers. As well as the camera position.</div><div class="ttdef"><b>Definition</b> car_player.cpp:25</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_abc06b005242155ee954e3e6b7bbe1066"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#abc06b005242155ee954e3e6b7bbe1066">godot::CarPlayer::grace_timer_end</a></div><div class="ttdeci">float grace_timer_end</div><div class="ttdoc">The time at which the current grace period will end.</div><div class="ttdef"><b>Definition</b> car_player.hpp:82</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ac0bfa88625a6f51a5b27873126ab8e38"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ac0bfa88625a6f51a5b27873126ab8e38">godot::CarPlayer::camera_distance</a></div><div class="ttdeci">float const camera_distance</div><div class="ttdoc">Distance from the pivot the camera should be at.</div><div class="ttdef"><b>Definition</b> car_player.hpp:103</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ac7fa943254a1102a1754867c836a7665"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ac7fa943254a1102a1754867c836a7665">godot::CarPlayer::_bind_methods</a></div><div class="ttdeci">static void _bind_methods()</div><div class="ttdoc">Register editor properties and damage function.</div><div class="ttdef"><b>Definition</b> car_player.cpp:12</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ad15a082d87be085b4cfe609ef3fe928d"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ad15a082d87be085b4cfe609ef3fe928d">godot::CarPlayer::grace_time</a></div><div class="ttdeci">float const grace_time</div><div class="ttdoc">Amount of time the player should be invincible after being hit.</div><div class="ttdef"><b>Definition</b> car_player.hpp:113</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ad7cdaae032749f449247fe47fea75815"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ad7cdaae032749f449247fe47fea75815">godot::CarPlayer::activate_shield</a></div><div class="ttdeci">void activate_shield()</div><div class="ttdoc">Destroy all powerups and spawn a shield.</div><div class="ttdef"><b>Definition</b> car_player.cpp:101</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ad7fe9854e03ce68748c569a091ee8af8"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ad7fe9854e03ce68748c569a091ee8af8">godot::CarPlayer::spawn_at_position</a></div><div class="ttdeci">virtual void spawn_at_position(Transform3D const &transform) override</div><div class="ttdoc">Place player at initial position Called from the GameRoot3D of the godot-cpp-utils library.</div><div class="ttdef"><b>Definition</b> car_player.cpp:47</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_addf2ecd3b8e64760f06059f47218d6e8"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#addf2ecd3b8e64760f06059f47218d6e8">godot::CarPlayer::turret</a></div><div class="ttdeci">Ref< PackedScene > turret</div><div class="ttdoc">The roof turret powerup scene.</div><div class="ttdef"><b>Definition</b> car_player.hpp:90</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ae260f5a8e5617de01cebf46fc6a66ed5"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ae260f5a8e5617de01cebf46fc6a66ed5">godot::CarPlayer::_ready</a></div><div class="ttdeci">virtual void _ready() override</div><div class="ttdoc">Get the required child nodes.</div><div class="ttdef"><b>Definition</b> car_player.cpp:20</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_ae49d24b62e806afb971c6406aa8d50d3"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#ae49d24b62e806afb971c6406aa8d50d3">godot::CarPlayer::set_turret_scene</a></div><div class="ttdeci">void set_turret_scene(Ref< PackedScene > scene)</div><div class="ttdoc">The object representing the turret pickup.</div><div class="ttdef"><b>Definition</b> car_player.cpp:107</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_aeda389642caef8579d58cdf2b5a69dab"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#aeda389642caef8579d58cdf2b5a69dab">godot::CarPlayer::destroy_all_powerups</a></div><div class="ttdeci">void destroy_all_powerups()</div><div class="ttdoc">Destroy all children of roof_slot.</div><div class="ttdef"><b>Definition</b> car_player.cpp:78</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_af266f0e3e3de4ad53985592554cce35e"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#af266f0e3e3de4ad53985592554cce35e">godot::CarPlayer::get_shield_scene</a></div><div class="ttdeci">Ref< PackedScene > get_shield_scene() const</div><div class="ttdoc">The object representing the shield pickup.</div><div class="ttdef"><b>Definition</b> car_player.cpp:127</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_af3b2b99d83091352bc5e8dc7358890be"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#af3b2b99d83091352bc5e8dc7358890be">godot::CarPlayer::roof_slot</a></div><div class="ttdeci">Node3D * roof_slot</div><div class="ttdoc">The parent of any pickup models.</div><div class="ttdef"><b>Definition</b> car_player.hpp:85</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_af46e4e888d81935cc86d553c25878476"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#af46e4e888d81935cc86d553c25878476">godot::CarPlayer::set_shield_scene</a></div><div class="ttdeci">void set_shield_scene(Ref< PackedScene > scene)</div><div class="ttdoc">The object representing the shield pickup.</div><div class="ttdef"><b>Definition</b> car_player.cpp:123</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_afa06d59d0b669ff5efee74c683cb2b4d"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#afa06d59d0b669ff5efee74c683cb2b4d">godot::CarPlayer::fov_lerp_delta</a></div><div class="ttdeci">float const fov_lerp_delta</div><div class="ttdoc">Speed in degrees-per-second that the camera FOV can change at.</div><div class="ttdef"><b>Definition</b> car_player.hpp:111</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_afa93feb6fa78dcebb5162ddf428f267d"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#afa93feb6fa78dcebb5162ddf428f267d">godot::CarPlayer::takes_damage</a></div><div class="ttdeci">bool takes_damage</div><div class="ttdoc">If false, the car will be invincible.</div><div class="ttdef"><b>Definition</b> car_player.hpp:80</div></div>
|
|
<div class="ttc" id="aclassgodot_1_1CarPlayer_html_afcb3ee548cd66fbd9305c6cd40eb7067"><div class="ttname"><a href="classgodot_1_1CarPlayer.html#afcb3ee548cd66fbd9305c6cd40eb7067">godot::CarPlayer::grace_time_flash</a></div><div class="ttdeci">float const grace_time_flash</div><div class="ttdoc">Interval at which the car's model should flash while invincible after being hit.</div><div class="ttdef"><b>Definition</b> car_player.hpp:115</div></div>
|
|
<div class="ttc" id="anamespacegodot_html"><div class="ttname"><a href="namespacegodot.html">godot</a></div><div class="ttdef"><b>Definition</b> beacon_powerup.cpp:6</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
|
|
</small></address>
|
|
</body>
|
|
</html>
|