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.
refusesanswers text, so this reads the message rather than saying it.
Inherited members¶
- afterTravel from Thing
- allowedPostures from Thing
- allowPourIntoMe from Thing
- beforeTravel from Thing
- bulk from Thing
- bulkCapacity from Thing
- bulkLimit from Thing
- cannotOpenMsg from Thing
- cannotTakeMsg from Thing
- canObjReachSelf from Thing
- contentsListed from Thing
- defaultPosture from Thing
- desc from Thing
- fluidName from Thing
- forget from Thing
- hasSpecialDesc from Thing
- informedOf from Thing
- initiallyKnowsAbout from Thing
- isAttachable from Thing
- isConsultable from Thing
- isContainer from Thing
- isDistant from Thing
- isDrinkable from Thing
- isEdible from Thing
- isFamiliar from Thing
- isGenderNeutral from Thing
- isHer from Thing
- isHidden from Thing
- isHim from Thing
- isIntangible from Thing
- isIt from Thing
- isLightSource from Thing
- isLit from Thing
- isLockable from Thing
- isLocked from Thing
- isMassNoun from Thing
- isOpen from Thing
- isOpenable from Thing
- isOutOfReach from Thing
- isPlural from Thing
- isProper from Thing
- isTransparent from Thing
- isWorn from Thing
- keyItem from Thing
- known from Thing
- knowsAbout from Thing
- maxSingleBulk from Thing
- name from Thing
- notifyInsert from Thing
- objPos from Thing
- pcReferralPerson from Thing
- preCond from Thing
- presentation from Thing
- remapBehind from Thing
- remapIn from Thing
- remapOn from Thing
- remapUnder from Thing
- roomBeforeAction from Thing
- seen from Thing
- setKnowsAbout from Thing
- specialDesc from Thing
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.