comparison src/parpg/components/containable.py @ 41:74f09d6417f4

Backed out changeset: 799fc37fec6d
author KarstenBock@gmx.net
date Wed, 10 Aug 2011 21:08:14 +0200
parents 799fc37fec6d
children 1cc037593517
comparison
equal deleted inserted replaced
40:be9a0e9e3ac2 41:74f09d6417f4
16 class Containable(Component): 16 class Containable(Component):
17 """Component that allows an entity to be contained by Container entity.""" 17 """Component that allows an entity to be contained by Container entity."""
18 18
19 def __init__(self): 19 def __init__(self):
20 """Constructor""" 20 """Constructor"""
21 Component.__init__(bulk=int, weight=int, image=str, current_container=object, new_container=object, new_slot=int) 21 Component.__init__(bulk=int, weight=int, image=str, container=object)
22 self.fields['current_container'].default = None
23 self.fields['new_container'].default = None
24 self.fields['new_slot'].default = -1