RedFood:
Filter:
redUniverse/Classes (extension) | Red > redUniverse

RedFood
ExtensionExtension

an object with energy

Instance Methods

.eat

Takes away energy from this object.

Returns:

How much energy was taken away. Energy can not go below 0 so if there is 6 left and 10 is taken, this method returns 4.

.energy

Scalar. The default is 1000.

Examples