Пример #1
0
	def __init__(self, topics={}, answers={}, orders={}):
		Property.__init__(self)
		self.topics = topics
		'''Dict containing topics you can tell this NPC about.'''
		self.answers = answers
		'''Dict containing topics you can ask this NPC about.'''
		self.orders = orders
		'''Dict containing topics can ask this NPC to do.'''
Пример #2
0
 def __init__(self, topics={}, answers={}, orders={}):
     Property.__init__(self)
     self.topics = topics
     '''Dict containing topics you can tell this NPC about.'''
     self.answers = answers
     '''Dict containing topics you can ask this NPC about.'''
     self.orders = orders
     '''Dict containing topics can ask this NPC to do.'''
Пример #3
0
	def __init__(self, long=None, short=None, inv=None, descIn={}):
		Property.__init__(self)
		self.long = long
		'''Long description of the object.'''
		self.short = short
		'''Short description of the object. Typically shown as part of object owner's 
		long description.'''
		self.inv = inv
		'''Invoked when player examines inventory.'''
		self.descIn = descIn
		'''A dict containing specific descriptions for the object if contained in another
Пример #4
0
	def __init__(self, droppable=True, takeable=True, movable=True, autoDescribe=True):
		Property.__init__(self)
		self.droppable=droppable
		'''True if item can be dropped.'''
		self.takeable = takeable
		'''True if item can be taken.'''
		self.dropped = False
		'''True if item is not in its original location.'''
		self.movable = movable
		'''True if player can push this.'''
		self.autoDescribe = autoDescribe
Пример #5
0
    def __init__(self, long=None, short=None, inv=None, descIn={}):
        Property.__init__(self)
        self.long = long
        '''Long description of the object.'''
        self.short = short
        '''Short description of the object. Typically shown as part of object owner's 
		long description.'''
        self.inv = inv
        '''Invoked when player examines inventory.'''
        self.descIn = descIn
        '''A dict containing specific descriptions for the object if contained in another
Пример #6
0
 def __init__(self,
              droppable=True,
              takeable=True,
              movable=True,
              autoDescribe=True):
     Property.__init__(self)
     self.droppable = droppable
     '''True if item can be dropped.'''
     self.takeable = takeable
     '''True if item can be taken.'''
     self.dropped = False
     '''True if item is not in its original location.'''
     self.movable = movable
     '''True if player can push this.'''
     self.autoDescribe = autoDescribe
Пример #7
0
	def __init__(self, on=True, inverse=False):
		Property.__init__(self)
		self.on = on
		'''Whether it's currently emitting light.'''
		self.inverse = inverse
		'''True if item should suck light from container rather than emit it.'''
Пример #8
0
	def __init__(self, light=False):
		Property.__init__(self)
		self.light = light
Пример #9
0
	def __init__(self, closed=True, locked=False, key=None):
		Property.__init__(self)
		self.closed = closed
		self.locked = locked
		self.key = key
Пример #10
0
    def __init__(self, hot=True):
        Property.__init__(self)

        self.hot = hot
        '''True if object is too hot to touch directly.'''
Пример #11
0
	def __init__(self, on=False):
		Property.__init__(self)
		self.on = on
Пример #12
0
 def __init__(self, on=True, inverse=False):
     Property.__init__(self)
     self.on = on
     '''Whether it's currently emitting light.'''
     self.inverse = inverse
     '''True if item should suck light from container rather than emit it.'''
Пример #13
0
 def __init__(self, light=False):
     Property.__init__(self)
     self.light = light
Пример #14
0
 def __init__(self, closed=True, locked=False, key=None):
     Property.__init__(self)
     self.closed = closed
     self.locked = locked
     self.key = key
Пример #15
0
	def __init__(self, hot=True):
		Property.__init__(self)
		
		self.hot = hot
		'''True if object is too hot to touch directly.'''