diff gamemodel.py @ 154:4dc7951c3bfc

Moved code from CharacterCreationController to GameModel
author KarstenBock@gmx.net
date Sat, 05 Nov 2011 14:53:12 +0100
parents 80672955ab70
children f017f8cac2c2
line wrap: on
line diff
--- a/gamemodel.py	Sat Nov 05 14:42:12 2011 +0100
+++ b/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