Mercurial > parpg-core
comparison src/parpg/components/containable.py @ 37:799fc37fec6d
Changes for the container system
author | KarstenBock@gmx.net |
---|---|
date | Sun, 31 Jul 2011 23:48:54 +0200 |
parents | 5ac50245e42c |
children | 74f09d6417f4 |
comparison
equal
deleted
inserted
replaced
36:6a637c737d20 | 37:799fc37fec6d |
---|---|
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, container=object) | 21 Component.__init__(bulk=int, weight=int, image=str, current_container=object, new_container=object, new_slot=int) |
22 self.fields['current_container'].default = None | |
23 self.fields['new_container'].default = None | |
24 self.fields['new_slot'].default = -1 |