-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi__player_8cc_source.html
More file actions
114 lines (112 loc) · 20.1 KB
/
api__player_8cc_source.html
File metadata and controls
114 lines (112 loc) · 20.1 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Simutrans-Squirrel-API: api_player.cc 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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Simutrans-Squirrel-API
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<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>
</div><!-- top -->
<!-- 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 class="header">
<div class="headertitle">
<div class="title">api_player.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="api__player_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="classplayer__x.html"> 6</a></span> <span class="keyword">class </span><a class="code" href="classplayer__x.html">player_x</a> : <span class="keyword">public</span> <a class="code" href="classextend__get.html">extend_get</a>,<a class="code" href="classingame__object.html">ingame_object</a> {</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <a class="code" href="classplayer__x.html#ad83cc3b4b23060ca0e122370baeaac9e">player_x</a>(integer nr);</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  <span class="keywordtype">bool</span> <a class="code" href="classplayer__x.html#af5e6323402783561e7e74d21d35d423b">is_valid</a>();</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">static</span> <a class="code" href="classplayer__x.html">player_x</a> <span class="keyword">self</span>();</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  integer <a class="code" href="classplayer__x.html#a85267f3e2774b0dc2c51e1e4ac4d1476">get_headquarter_level</a>();</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classcoord.html">coord</a> <a class="code" href="classplayer__x.html#af7ddc9f3a0fa06f107b4d4a2674d4c84">get_headquarter_pos</a>();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">string</span> <a class="code" href="classplayer__x.html#ad3dd5087e020972c197e71a74bc36d30">get_name</a>();</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span> <a class="code" href="group__rename__func.html#gad2674dd1b66070c35f58459d30e6a23b">set_name</a>(<span class="keywordtype">string</span> name);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  array<integer> <a class="code" href="classplayer__x.html#a6cdbc53659455dceeadaa7d65cae5a45">get_construction</a>();</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  array<integer> <a class="code" href="classplayer__x.html#ab2d4d88a5de435eba2d29d90cd6285b5">get_vehicle_maint</a>();</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  array<integer> <a class="code" href="classplayer__x.html#a740b415b1b194f473b49f438247135a8">get_new_vehicles</a>();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  array<integer> <a class="code" href="classplayer__x.html#ada5793130999fe1c4a63ea27d9b575a7">get_income</a>();</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  array<integer> <a class="code" href="classplayer__x.html#abf8cc86ea403edead924e7441b195a19">get_maintenance</a>();</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  array<integer> <a class="code" href="classplayer__x.html#afcf9031b017b542b5a41b864cc20be38">get_assets</a>();</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  array<integer> <a class="code" href="classplayer__x.html#a0408c5da040e3e0ccae4158420d79a03">get_cash</a>();</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  array<integer> <a class="code" href="classplayer__x.html#a2f2bad86bff452b8fc6075f304ee6014">get_net_wealth</a>();</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  array<integer> <a class="code" href="classplayer__x.html#ae056743c1841334c5abc81b8e77118ba">get_profit</a>();</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  array<integer> <a class="code" href="classplayer__x.html#a0cbdcd4d018879c977bb6baae1509448">get_operating_profit</a>();</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  array<integer> <a class="code" href="classplayer__x.html#a73933fe8107df35c69b0a7c888162e69">get_margin</a>();</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  array<integer> <a class="code" href="classplayer__x.html#a4c5b93afce3208b7ceb8b7ee62f2356c">get_transported</a>();</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  array<integer> <a class="code" href="classplayer__x.html#a236f72f7ee4e63fe629f30102d31c2ab">get_powerline</a>();</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  array<integer> <a class="code" href="classplayer__x.html#a0f54942825a441d9c7e1d1ad37f5a2de">get_transported_pax</a>();</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  array<integer> <a class="code" href="classplayer__x.html#ae403445e0f05ad6fe1a826e2657efb2e">get_transported_mail</a>();</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  array<integer> <a class="code" href="classplayer__x.html#a165a2d40c95d63d396150eec7419270c">get_transported_goods</a>();</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  array<integer> <a class="code" href="classplayer__x.html#ad53f705f64661c900b2cb112808f39d4">get_convoys</a>();</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  array<integer> <a class="code" href="classplayer__x.html#ab879503d21dd82913cb448e7ceb12690">get_way_tolls</a>();</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordtype">void</span> <a class="code" href="group__scen__only.html#gad9fc88d35e89f0d3cf833bd297165038">book_cash</a>(integer delta);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">float</span> <a class="code" href="classplayer__x.html#ab231db5162aaf170ff8140103251aa78">get_current_cash</a>();</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  integer <a class="code" href="classplayer__x.html#ac379dadf54e02c323f0bb06a7092f48f">get_current_net_wealth</a>();</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  integer <a class="code" href="classplayer__x.html#ad00274846c41e713158077d330173a65">get_current_maintenance</a>();</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">bool</span> <a class="code" href="classplayer__x.html#a2f0f56f9144a0f0252d84186f74722e5">is_active</a>();</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="classline__list__x.html">line_list_x</a> <a class="code" href="classplayer__x.html#a6659200cdd3054aee15257106737c21f">get_line_list</a>();</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordtype">void</span> <a class="code" href="group__game__cmd.html#ga6bdb1e5983d19f6ac97dcc609ea7d7d7">create_line</a>(<a class="code" href="api__const_8cc.html#a54cfd1fb3beb4607096d5c42809655af">way_types</a> wt);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  integer <a class="code" href="classplayer__x.html#abdcce04a4e23398b3ee553a2ceb1c421">get_type</a>();</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> };</div><div class="ttc" id="classplayer__x_html_a6659200cdd3054aee15257106737c21f"><div class="ttname"><a href="classplayer__x.html#a6659200cdd3054aee15257106737c21f">player_x::get_line_list</a></div><div class="ttdeci">line_list_x get_line_list()</div></div>
<div class="ttc" id="api__const_8cc_html_a54cfd1fb3beb4607096d5c42809655af"><div class="ttname"><a href="api__const_8cc.html#a54cfd1fb3beb4607096d5c42809655af">way_types</a></div><div class="ttdeci">way_types</div><div class="ttdef"><b>Definition:</b> <a href="api__const_8cc_source.html#l00118">api_const.cc:118</a></div></div>
<div class="ttc" id="classplayer__x_html_ada5793130999fe1c4a63ea27d9b575a7"><div class="ttname"><a href="classplayer__x.html#ada5793130999fe1c4a63ea27d9b575a7">player_x::get_income</a></div><div class="ttdeci">array< integer > get_income()</div></div>
<div class="ttc" id="classplayer__x_html_a2f2bad86bff452b8fc6075f304ee6014"><div class="ttname"><a href="classplayer__x.html#a2f2bad86bff452b8fc6075f304ee6014">player_x::get_net_wealth</a></div><div class="ttdeci">array< integer > get_net_wealth()</div></div>
<div class="ttc" id="classextend__get_html"><div class="ttname"><a href="classextend__get.html">extend_get</a></div><div class="ttdef"><b>Definition:</b> <a href="api__base_8h_source.html#l00075">api_base.h:75</a></div></div>
<div class="ttc" id="classplayer__x_html_a236f72f7ee4e63fe629f30102d31c2ab"><div class="ttname"><a href="classplayer__x.html#a236f72f7ee4e63fe629f30102d31c2ab">player_x::get_powerline</a></div><div class="ttdeci">array< integer > get_powerline()</div></div>
<div class="ttc" id="classplayer__x_html_af7ddc9f3a0fa06f107b4d4a2674d4c84"><div class="ttname"><a href="classplayer__x.html#af7ddc9f3a0fa06f107b4d4a2674d4c84">player_x::get_headquarter_pos</a></div><div class="ttdeci">coord get_headquarter_pos()</div></div>
<div class="ttc" id="classplayer__x_html_a0f54942825a441d9c7e1d1ad37f5a2de"><div class="ttname"><a href="classplayer__x.html#a0f54942825a441d9c7e1d1ad37f5a2de">player_x::get_transported_pax</a></div><div class="ttdeci">array< integer > get_transported_pax()</div></div>
<div class="ttc" id="classplayer__x_html_ad00274846c41e713158077d330173a65"><div class="ttname"><a href="classplayer__x.html#ad00274846c41e713158077d330173a65">player_x::get_current_maintenance</a></div><div class="ttdeci">integer get_current_maintenance()</div></div>
<div class="ttc" id="classplayer__x_html_ac379dadf54e02c323f0bb06a7092f48f"><div class="ttname"><a href="classplayer__x.html#ac379dadf54e02c323f0bb06a7092f48f">player_x::get_current_net_wealth</a></div><div class="ttdeci">integer get_current_net_wealth()</div></div>
<div class="ttc" id="classplayer__x_html_ab231db5162aaf170ff8140103251aa78"><div class="ttname"><a href="classplayer__x.html#ab231db5162aaf170ff8140103251aa78">player_x::get_current_cash</a></div><div class="ttdeci">float get_current_cash()</div></div>
<div class="ttc" id="classplayer__x_html_ab879503d21dd82913cb448e7ceb12690"><div class="ttname"><a href="classplayer__x.html#ab879503d21dd82913cb448e7ceb12690">player_x::get_way_tolls</a></div><div class="ttdeci">array< integer > get_way_tolls()</div></div>
<div class="ttc" id="classplayer__x_html_a165a2d40c95d63d396150eec7419270c"><div class="ttname"><a href="classplayer__x.html#a165a2d40c95d63d396150eec7419270c">player_x::get_transported_goods</a></div><div class="ttdeci">array< integer > get_transported_goods()</div></div>
<div class="ttc" id="classcoord_html"><div class="ttname"><a href="classcoord.html">coord</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00032">api_simple.cc:32</a></div></div>
<div class="ttc" id="classplayer__x_html_ae056743c1841334c5abc81b8e77118ba"><div class="ttname"><a href="classplayer__x.html#ae056743c1841334c5abc81b8e77118ba">player_x::get_profit</a></div><div class="ttdeci">array< integer > get_profit()</div></div>
<div class="ttc" id="classplayer__x_html_ad3dd5087e020972c197e71a74bc36d30"><div class="ttname"><a href="classplayer__x.html#ad3dd5087e020972c197e71a74bc36d30">player_x::get_name</a></div><div class="ttdeci">string get_name()</div></div>
<div class="ttc" id="classplayer__x_html_ad53f705f64661c900b2cb112808f39d4"><div class="ttname"><a href="classplayer__x.html#ad53f705f64661c900b2cb112808f39d4">player_x::get_convoys</a></div><div class="ttdeci">array< integer > get_convoys()</div></div>
<div class="ttc" id="group__scen__only_html_gad9fc88d35e89f0d3cf833bd297165038"><div class="ttname"><a href="group__scen__only.html#gad9fc88d35e89f0d3cf833bd297165038">player_x::book_cash</a></div><div class="ttdeci">void book_cash(integer delta)</div></div>
<div class="ttc" id="classplayer__x_html_a2f0f56f9144a0f0252d84186f74722e5"><div class="ttname"><a href="classplayer__x.html#a2f0f56f9144a0f0252d84186f74722e5">player_x::is_active</a></div><div class="ttdeci">bool is_active()</div></div>
<div class="ttc" id="classplayer__x_html_a0cbdcd4d018879c977bb6baae1509448"><div class="ttname"><a href="classplayer__x.html#a0cbdcd4d018879c977bb6baae1509448">player_x::get_operating_profit</a></div><div class="ttdeci">array< integer > get_operating_profit()</div></div>
<div class="ttc" id="classplayer__x_html_abf8cc86ea403edead924e7441b195a19"><div class="ttname"><a href="classplayer__x.html#abf8cc86ea403edead924e7441b195a19">player_x::get_maintenance</a></div><div class="ttdeci">array< integer > get_maintenance()</div></div>
<div class="ttc" id="classplayer__x_html_a6cdbc53659455dceeadaa7d65cae5a45"><div class="ttname"><a href="classplayer__x.html#a6cdbc53659455dceeadaa7d65cae5a45">player_x::get_construction</a></div><div class="ttdeci">array< integer > get_construction()</div></div>
<div class="ttc" id="group__game__cmd_html_ga6bdb1e5983d19f6ac97dcc609ea7d7d7"><div class="ttname"><a href="group__game__cmd.html#ga6bdb1e5983d19f6ac97dcc609ea7d7d7">player_x::create_line</a></div><div class="ttdeci">void create_line(way_types wt)</div></div>
<div class="ttc" id="classplayer__x_html_a73933fe8107df35c69b0a7c888162e69"><div class="ttname"><a href="classplayer__x.html#a73933fe8107df35c69b0a7c888162e69">player_x::get_margin</a></div><div class="ttdeci">array< integer > get_margin()</div></div>
<div class="ttc" id="classingame__object_html"><div class="ttname"><a href="classingame__object.html">ingame_object</a></div><div class="ttdef"><b>Definition:</b> <a href="api__simple_8cc_source.html#l00211">api_simple.cc:211</a></div></div>
<div class="ttc" id="classplayer__x_html_a85267f3e2774b0dc2c51e1e4ac4d1476"><div class="ttname"><a href="classplayer__x.html#a85267f3e2774b0dc2c51e1e4ac4d1476">player_x::get_headquarter_level</a></div><div class="ttdeci">integer get_headquarter_level()</div></div>
<div class="ttc" id="group__rename__func_html_gad2674dd1b66070c35f58459d30e6a23b"><div class="ttname"><a href="group__rename__func.html#gad2674dd1b66070c35f58459d30e6a23b">player_x::set_name</a></div><div class="ttdeci">void set_name(string name)</div></div>
<div class="ttc" id="classplayer__x_html_abdcce04a4e23398b3ee553a2ceb1c421"><div class="ttname"><a href="classplayer__x.html#abdcce04a4e23398b3ee553a2ceb1c421">player_x::get_type</a></div><div class="ttdeci">integer get_type()</div></div>
<div class="ttc" id="classplayer__x_html_afcf9031b017b542b5a41b864cc20be38"><div class="ttname"><a href="classplayer__x.html#afcf9031b017b542b5a41b864cc20be38">player_x::get_assets</a></div><div class="ttdeci">array< integer > get_assets()</div></div>
<div class="ttc" id="classplayer__x_html"><div class="ttname"><a href="classplayer__x.html">player_x</a></div><div class="ttdef"><b>Definition:</b> <a href="api__player_8cc_source.html#l00006">api_player.cc:6</a></div></div>
<div class="ttc" id="classplayer__x_html_a4c5b93afce3208b7ceb8b7ee62f2356c"><div class="ttname"><a href="classplayer__x.html#a4c5b93afce3208b7ceb8b7ee62f2356c">player_x::get_transported</a></div><div class="ttdeci">array< integer > get_transported()</div></div>
<div class="ttc" id="classplayer__x_html_af5e6323402783561e7e74d21d35d423b"><div class="ttname"><a href="classplayer__x.html#af5e6323402783561e7e74d21d35d423b">player_x::is_valid</a></div><div class="ttdeci">bool is_valid()</div></div>
<div class="ttc" id="classplayer__x_html_a0408c5da040e3e0ccae4158420d79a03"><div class="ttname"><a href="classplayer__x.html#a0408c5da040e3e0ccae4158420d79a03">player_x::get_cash</a></div><div class="ttdeci">array< integer > get_cash()</div></div>
<div class="ttc" id="classline__list__x_html"><div class="ttname"><a href="classline__list__x.html">line_list_x</a></div><div class="ttdef"><b>Definition:</b> <a href="api__line_8cc_source.html#l00015">api_line.cc:15</a></div></div>
<div class="ttc" id="classplayer__x_html_ab2d4d88a5de435eba2d29d90cd6285b5"><div class="ttname"><a href="classplayer__x.html#ab2d4d88a5de435eba2d29d90cd6285b5">player_x::get_vehicle_maint</a></div><div class="ttdeci">array< integer > get_vehicle_maint()</div></div>
<div class="ttc" id="classplayer__x_html_a740b415b1b194f473b49f438247135a8"><div class="ttname"><a href="classplayer__x.html#a740b415b1b194f473b49f438247135a8">player_x::get_new_vehicles</a></div><div class="ttdeci">array< integer > get_new_vehicles()</div></div>
<div class="ttc" id="classplayer__x_html_ad83cc3b4b23060ca0e122370baeaac9e"><div class="ttname"><a href="classplayer__x.html#ad83cc3b4b23060ca0e122370baeaac9e">player_x::player_x</a></div><div class="ttdeci">player_x(integer nr)</div></div>
<div class="ttc" id="classplayer__x_html_ae403445e0f05ad6fe1a826e2657efb2e"><div class="ttname"><a href="classplayer__x.html#ae403445e0f05ad6fe1a826e2657efb2e">player_x::get_transported_mail</a></div><div class="ttdeci">array< integer > get_transported_mail()</div></div>
</div><!-- fragment --></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.14
</small></address>
</body>
</html>