Mercurial > parpg-core
comparison src/parpg/components/equip.py @ 119:3564a46544bc
Added Base component, which has a saveable_fields property. It is supposed to be derived from, thus it is not in the components list.
author | KarstenBock@gmx.net |
---|---|
date | Tue, 27 Sep 2011 14:58:03 +0200 |
parents | 7829eb185d6f |
children | 0ac4403404ea |
comparison
equal
deleted
inserted
replaced
118:29869273f9e1 | 119:3564a46544bc |
---|---|
9 # GNU General Public License for more details. | 9 # GNU General Public License for more details. |
10 # | 10 # |
11 # You should have received a copy of the GNU General Public License | 11 # You should have received a copy of the GNU General Public License |
12 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 12 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
13 | 13 |
14 from parpg.bGrease.component import Component | 14 from base import Base |
15 | 15 |
16 class Equip(Component): | 16 class Equip(Base): |
17 """ | 17 """ |
18 Component that stores the equipment (what is being worn/wieled). | 18 Component that stores the equipment (what is being worn/wieled). |
19 """ | 19 """ |
20 | 20 |
21 def __init__(self): | 21 def __init__(self): |
22 Component.__init__(self, head=object, body=object, leg=object, feet=object, l_arm=object, r_arm=object) | 22 Base.__init__(self, head=object, body=object, leg=object, feet=object, l_arm=object, r_arm=object) |
23 | 23 |
24 class SlotInvalidError(Exception): | 24 class SlotInvalidError(Exception): |
25 """Error that gets raised when the slot is invalid.""" | 25 """Error that gets raised when the slot is invalid.""" |
26 | 26 |
27 def __init__(self, slot): | 27 def __init__(self, slot): |