Go to the source code of this file.
exports scenario related functions.
Definition in file api_scenario.cc.
◆ coord3d_to_string()
string coord3d_to_string |
( |
coord3d |
c | ) |
|
Print coordinates, does automatic rotation.
- Parameters
-
- Returns
- a nice string
◆ coord_to_string()
string coord_to_string |
( |
coord |
c | ) |
|
Print coordinates, does automatic rotation.
- Parameters
-
- Returns
- a nice string
◆ difftick_to_string()
string difftick_to_string |
( |
integer |
| ) |
|
Translates difference of ticks to string.
◆ double_to_string()
string double_to_string |
( |
float |
value, |
|
|
integer |
decimals |
|
) |
| |
Pretty-print floating point numbers, use language specific separator for powers of thousands.
- Parameters
-
value | number to print |
decimals | how many decimals should be printed |
- Returns
- a nice string
◆ get_month_name()
string get_month_name |
( |
integer |
month | ) |
|
Get name of given month.
- Parameters
-
month | number between 0 (january) and 11 (december) |
- Returns
- month name in language of server
◆ integer_to_string()
string integer_to_string |
( |
integer |
value | ) |
|
Pretty-print integers, use language specific separator for powers of thousands.
- Parameters
-
- Returns
- a nice string
◆ money_to_string()
string money_to_string |
( |
integer |
value | ) |
|
Pretty-print money values, use language specific separator for powers of thousands.
- Parameters
-
- Returns
- a nice string with trailing dollar-sign
◆ translate()
string translate |
( |
string |
text | ) |
|
Helper method to translate strings.
- Parameters
-
- Returns
- translation of given string