Component

Class · class Component: Thing · Source

A thing whose identity and placement are tied to another object.

Audience: author

Superclass: Thing

Subclasses: AttachableComponent

Declared members

  • isDecoration — property; Part of its owner's description, not a separate line in the room.
  • isDetachable — property; Whether it may be prised off. An AttachableComponent says yes.
  • isFixed — property; internal
  • rank — method; And it is the one you did not mean when something else could be taken.
  • refuses — method; Taking a part says what it is part of, rather than the room's stock refusal, because the handle is part of the lantern is the answer a player actually wanted. refuses answers text, so this reads the message rather than saying it.

Inherited members

Member details

isDecoration

isDecoration = true · Source

Part of its owner's description, not a separate line in the room.

isDetachable

isDetachable = nil · Source

Whether it may be prised off. An AttachableComponent says yes.

isFixed

isFixed = true · Source

Internal implementation detail; no supported authoring contract is documented.

rank

rank(a, role) · Source

And it is the one you did not mean when something else could be taken.

refuses

refuses(action, c) · Source

Taking a part says what it is part of, rather than the room's stock refusal, because the handle is part of the lantern is the answer a player actually wanted. refuses answers text, so this reads the message rather than saying it.