Mercurial > parpg-core
diff src/parpg/gamemodel.py @ 186:8cc26e89398c
Moved code from CharacterCreationController to GameModel
author | KarstenBock@gmx.net |
---|---|
date | Sat, 05 Nov 2011 14:53:12 +0100 |
parents | 59c9ce2b8351 |
children | f612b4638744 |
line wrap: on
line diff
--- a/src/parpg/gamemodel.py Sat Nov 05 14:42:12 2011 +0100 +++ b/src/parpg/gamemodel.py Sat Nov 05 14:53:12 2011 +0100 @@ -22,6 +22,7 @@ from fife import fife from fife.extensions.serializers.xmlobject import XMLObjectLoader from parpg.bGrease.geometry import Vec2d +from serializers import XmlSerializer from parpg import vfs from gamestate import GameState @@ -95,7 +96,17 @@ self.dialogues = {} self.agent_import_files = {} self.obj_loader = XMLObjectLoader(self.engine) - + # FIXME M. George Hansen 2011-06-06: character stats scripts aren't + # finished, unfortunately. + #primary_stats_file = \ + # vfs.VFS.open('character_scripts/primary_stats.xml') + #self.primary_stats = XmlSerializer.deserialize(primary_stats_file) + #secondary_stats_file = \ + # vfs.VFS.open('character_scripts/secondary_stats.xml') + #self.secondary_stats = XmlSerializer.deserialize(secondary_stats_file) + self.primary_stats = [] + self.secondary_stats = [] + def checkAttributes(self, attributes, template): """Checks for attributes that where not given in the map file and fills them with values from the object database