|
Simutrans-Squirrel-API
|
Public Member Functions | |
| void | book_cash (integer delta) |
| void | create_line (way_types wt) |
| array< integer > | get_assets () |
| array< integer > | get_cash () |
| array< integer > | get_construction () |
| array< integer > | get_convoys () |
| float | get_current_cash () |
| integer | get_current_maintenance () |
| integer | get_current_net_wealth () |
| integer | get_headquarter_level () |
| coord | get_headquarter_pos () |
| array< integer > | get_income () |
| line_list_x | get_line_list () |
| array< integer > | get_maintenance () |
| array< integer > | get_margin () |
| string | get_name () |
| array< integer > | get_net_wealth () |
| array< integer > | get_new_vehicles () |
| array< integer > | get_operating_profit () |
| array< integer > | get_powerline () |
| array< integer > | get_profit () |
| array< integer > | get_transported () |
| array< integer > | get_transported_goods () |
| array< integer > | get_transported_mail () |
| array< integer > | get_transported_pax () |
| integer | get_type () |
| array< integer > | get_vehicle_maint () |
| array< integer > | get_way_tolls () |
| bool | is_active () |
| bool | is_valid () |
| player_x (integer nr) | |
| void | set_name (string name) |
Static Public Member Functions | |
| static player_x | self () |
Class to access player statistics. Here, a player refers to one transport company, not to an individual playing simutrans.
Definition at line 6 of file api_player.cc.
| player_x::player_x | ( | integer | nr | ) |
Constructor.
| nr | player number, 0 = standard player, 1 = public player |
| array<integer> player_x::get_assets | ( | ) |
Get monthly statistics of assets.
| array<integer> player_x::get_cash | ( | ) |
Get monthly statistics of cash.
| array<integer> player_x::get_construction | ( | ) |
Get monthly statistics of construction costs.
| array<integer> player_x::get_convoys | ( | ) |
Get monthly statistics of number of convoys.
| float player_x::get_current_cash | ( | ) |
Returns the current account balance.
| integer player_x::get_current_maintenance | ( | ) |
Returns the current maintenance [in 1/100 cr].
| integer player_x::get_current_net_wealth | ( | ) |
Returns the current net worth [in 1/100 cr].
| integer player_x::get_headquarter_level | ( | ) |
Return headquarters level.
| coord player_x::get_headquarter_pos | ( | ) |
Return headquarters position.
| array<integer> player_x::get_income | ( | ) |
Get monthly statistics of income.
| line_list_x player_x::get_line_list | ( | ) |
Exports list of lines of this player.
| array<integer> player_x::get_maintenance | ( | ) |
Get monthly statistics of infrastructure maintenance.
| array<integer> player_x::get_margin | ( | ) |
Get monthly statistics of margin.
| string player_x::get_name | ( | ) |
Return name of company.
| array<integer> player_x::get_net_wealth | ( | ) |
Get monthly statistics of net wealth.
| array<integer> player_x::get_new_vehicles | ( | ) |
Get monthly statistics of costs for vehicle purchase.
| array<integer> player_x::get_operating_profit | ( | ) |
Get monthly statistics of operating profit.
| array<integer> player_x::get_powerline | ( | ) |
Get monthly statistics of income from powerlines.
| array<integer> player_x::get_profit | ( | ) |
Get monthly statistics of profit.
| array<integer> player_x::get_transported | ( | ) |
Get monthly statistics of all transported goods.
| array<integer> player_x::get_transported_goods | ( | ) |
Get monthly statistics of transported goods.
| array<integer> player_x::get_transported_mail | ( | ) |
Get monthly statistics of transported mail.
| array<integer> player_x::get_transported_pax | ( | ) |
Get monthly statistics of transported passengers.
| integer player_x::get_type | ( | ) |
Returns player type: 1 = human, 2,3 = old c++ AI, 4 = scripted AI
| array<integer> player_x::get_vehicle_maint | ( | ) |
Get monthly statistics of vehicle running costs.
| array<integer> player_x::get_way_tolls | ( | ) |
Get monthly statistics of income/loss due to way tolls.
| bool player_x::is_active | ( | ) |
Returns whether the player (still) exists in the game.
| bool player_x::is_valid | ( | ) |
1.8.14