comparison src/parpg/components/character_statistics.py @ 140:e1ca6a99eb85

Added gender, picture, age, origin and traits to the CharacterStatistics component and splitted statistics into primary_stats and secondary_stats.
author KarstenBock@gmx.net
date Sat, 01 Oct 2011 14:07:40 +0200
parents 7c9b7efc0f11
children 997cc6d182d5
comparison
equal deleted inserted replaced
139:7c9b7efc0f11 140:e1ca6a99eb85
16 class CharacterStatistics(Base): 16 class CharacterStatistics(Base):
17 """Component that defines character statistics.""" 17 """Component that defines character statistics."""
18 18
19 def __init__(self): 19 def __init__(self):
20 """Constructor""" 20 """Constructor"""
21 Base.__init__(self, statistics=dict) 21 Base.__init__(self, gender=str, picture=str, age=int, origin=str,
22 primary_stats=dict, secondary_stats=dict, traits=list,
23 )