Methods
|
|
|
|
CanContain
|
CanContain ( self, pWhat )
can we contain something?
|
|
CanSee
|
CanSee ( self, pWhat )
can we see the given object? (assuming it's present)
|
|
GetDesc
|
GetDesc ( self, pDepth=0 )
get description
|
|
GetListLine
|
GetListLine ( self )
get line to be printed in a list of items (e.g., for inventory)
when an item should have a listline you either have to write it
like so:
- a shrubbery of sorts or
self.Getname(a) + of sorts if the main name is shrubbery.
|
|
GetName
|
GetName (
self,
article=0,
pLooker=None,
)
get name
|
|
GetNote
|
GetNote ( self )
get note (for when listing the contents of a room)
|
|
GetRoom
|
GetRoom ( self )
get room (not just any container, but the first ROOM container)
|
|
MoveTo
|
MoveTo ( self, pWhere )
move objects to destination in pWhere if checks pass
if the destination is TRASH delete object
|
|
NameMatch
|
NameMatch ( self, pName )
check for a name match
|
|
PostMove
|
PostMove ( self )
|
|
PostObj
|
PostObj ( self, cmd )
|
|
PreMove
|
PreMove ( self )
checks before and after this object is moved
|
|
PreObj
|
PreObj ( self, cmd )
|
|
Tell
|
Tell (
self,
pWhat,
pCmd=None,
)
let the object hear something
by default, do nothing
the pCmd parameter allows substitution of various
object names, depending on whether this object can see 'em
|
|
__call__
|
__call__ (
self,
article=0,
pLooker=None,
)
allow treating an object like a function,
as a shorthand for GetName
|
|
__getinitargs__
|
__getinitargs__ ( self )
get arguments (used by copy.copy)
|
|
__init__
|
__init__ ( self, pName='' )
initialization method
|