Mercurial > parpg-source
comparison components/containable.py @ 15:9ffcb493a0f4
Changes for the container system
author | KarstenBock@gmx.net |
---|---|
date | Sun, 31 Jul 2011 23:48:54 +0200 |
parents | 9c7a96c6fe41 |
children | 16c959864d41 |
comparison
equal
deleted
inserted
replaced
14:a9019d0ac5f8 | 15:9ffcb493a0f4 |
---|---|
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 |