PlugAttachableclassattachables.t[674]

PlugAttachable is a mix-in class for use in conjunction with either SimpleAttachable or NearbyAttachable, enabling the commands PLUG X INTO Y, UNPLUG X FROM Y, PLUG X IN and UNPLUG X, treating ATTACH and DETACH commands as equivalent to these, and describing an object's attachments as being plugged into it.

class PlugAttachable :   object

Superclass Tree   (in declaration order)

PlugAttachable
        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

alreadyAttachedMsg  alreadyPluggedInMsg  attachmentLister  cannotBeAttachedMsg  cannotPlugInAnyMoreMsg  canPlugIntoMe  isPlugable  isPluggedIn  needsExplicitSocket  notAttachedMsg  notAttachedToThatMsg  okayAttachMsg  okayDetachFromMsg  okayDetachMsg  socketCapacity 

Summary of Methods  

dobjFor(PlugIn)  dobjFor(PlugInto)  dobjFor(Unplug)  dobjFor(UnplugFrom)  iobjFor(AttachTo)  iobjFor(PlugInto)  makePlugged 

Properties  

alreadyAttachedMsgattachables.t[746]

no description available

alreadyPluggedInMsgattachables.t[749]
no description available

attachmentListerattachables.t[686]
Objects attached to this object should be described as plugged into it, so we need to use the appropriate lister.

cannotBeAttachedMsgattachables.t[801]
Make sure we don't exceed our socketCapacity if the player uses ATTACH TO rather than PLUG INTO; use the check method for PlugInto.

cannotPlugInAnyMoreMsgattachables.t[781]
If plugging anything else into us would exceed our socketCapacity, rule out the action with an appropriate message,

canPlugIntoMeattachables.t[680]
A PlugAttachable can have other things plugged into it.

isPlugableattachables.t[677]
A PlugAttachable can be plugged into things.

isPluggedInattachables.t[697]
Is this item plugged in to anything?

needsExplicitSocketattachables.t[694]
Plugable objects could either be implemented so that an explicit socket needs to be specified (e.g. PLUG CABLE INTO SOCKET) or so that the socket can be left unspecified (e.g. PLUG TV IN). For the former case, make this property true; for the latter, make it nil.

notAttachedMsgattachables.t[839]
no description available

notAttachedToThatMsgattachables.t[842]
no description available

okayAttachMsgattachables.t[743]
Note that we're now plugged in.

okayDetachFromMsgattachables.t[836]
Note that we're no longer plugged in to anything.

okayDetachMsgattachables.t[874]
If plugging/unplugging this item requires an explicit socket to plug into/unplug from, then detach this item from whatever it's currently attached to.

socketCapacityattachables.t[706]
If this object represents the socket side of a plug-and-socket relationship, then the socketCapacity defines the total number of items that can be plugged into it once. By default we'll assume that a socket can only have one thing plugged into it at a time, but this can readily be overridded for items that can take more.

Methods  

dobjFor(PlugIn)attachables.t[876]

no description available

dobjFor(PlugInto)attachables.t[714]
no description available

dobjFor(Unplug)attachables.t[845]
no description available

dobjFor(UnplugFrom)attachables.t[804]
no description available

iobjFor(AttachTo)attachables.t[784]
no description available

iobjFor(PlugInto)attachables.t[751]
no description available

makePlugged (stat)attachables.t[709]
Note whether we're plugged our unplugged.

Adv3Lite Library Reference Manual
Generated on 03/07/2024 from adv3Lite version 2.1