Table of Contents

Class: BaseThing pubcore.py

BaseThing: base class of any noun in the game (why not Noun?)

BaseThing
base class of any noun in the game

Methods   
CanContain
CanSee
GetDesc
GetListLine
GetName
GetNote
GetRoom
MoveTo
NameMatch
PostMove
PostObj
PreMove
PreObj
Tell
__call__
__getinitargs__
__init__
  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


Table of Contents

This document was automatically generated on Mon Aug 8 17:04:06 2005 by HappyDoc version 2.1