Members
AliveEnergy
amount of energy
world = this.world
function test() {
return world
}
Properties
Name | Type | Description |
---|---|---|
energy |
Energy | The energy wasted in this surviving instance. |
- Default Value:
- null
Methods
(generator) fibonacci() → {number}
Generate the Fibonacci sequence of numbers.
Yields:
The next number in the Fibonacci sequence.
- Type:
- number
createPublicInterface(obj)
Parameters
Name | Type | Description |
---|---|---|
obj |
Object |
- Source
fetchWeatherIcon(reading) → {string}
Maps a weather forecast description to an appropriate icon
Parameters
Name | Type | Description |
---|---|---|
reading |
WeatherReading | A weather forecast object |
Returns
A keyword matching a CSS class name in the icon set
- Type:
- string
Type Definitions
PhotoSize
PropertiesName | Type | Attributes | Description |
---|---|---|---|
file_id |
string | Identifier for this file, which can be used to download or reuse the file |
|
file_unique_id |
string | Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. |
|
width |
number | Photo width |
|
height |
number | Photo height |
|
file_size |
number |
<optional> |
Optional. File size in bytes |
EnergyUnit
Type
Properties
- object
Name | Type | Description |
---|---|---|
foo |
string | kajsdh kajhsd |
hello |
Array. |
aksjdh kaj shdkj asd |
EnvironmentConfiguration
Type
Properties
- object
Name | Type | Description |
---|---|---|
name |
string | Name of a living thing |
attributes |
Map. |
A mapping of attributes |
- Source