StaticObject

StaticObject

class

Base prototype for anything placeable in the world

Fields

NameTypeDescription
item StaticItem Item this object is built from and mined into
mined_item StaticItem Item a build pays and mining returns; nil when the object is not minable
mined_count integer How many of mined_item a build pays and mining returns; zero when the object is not minable
Standard members (4)

These members are available on all classes of this kind.

StaticObject.cast(object) Trying to cast Object into StaticObject
StaticObject.get_class() Return StaticObject class object
StaticObject.find(name) Looks StaticObject up in db, nil when there is none
StaticObject.get(name) Takes StaticObject from db, reports a miss to the log
Inherited from Prototype (2)
Inherited from Object (1)

Subclasses