comparison charactercreationcontroller.py @ 114:8bb84164e6a2

Move comment to correct place.
author KarstenBock@gmx.net
date Mon, 03 Oct 2011 13:05:23 +0200
parents c76f03c290f6
children 741d7d193bad
comparison
equal deleted inserted replaced
113:c76f03c290f6 114:8bb84164e6a2
83 ControllerBase.__init__(self, engine, view, model, application) 83 ControllerBase.__init__(self, engine, view, model, application)
84 World.__init__(self) 84 World.__init__(self)
85 self.settings = self.model.settings 85 self.settings = self.model.settings
86 self.view.start_new_game_callback = self.startNewGame 86 self.view.start_new_game_callback = self.startNewGame
87 self.view.cancel_new_game_callback = self.cancelNewGame 87 self.view.cancel_new_game_callback = self.cancelNewGame
88
89 def reset_character(self):
88 # FIXME M. George Hansen 2011-06-06: character stats scripts aren't 90 # FIXME M. George Hansen 2011-06-06: character stats scripts aren't
89 # finished, unfortunately. 91 # finished, unfortunately.
90 # primary_stats_file = \ 92 # primary_stats_file = \
91 # vfs.VFS.open('character_scripts/primary_stats.xml') 93 # vfs.VFS.open('character_scripts/primary_stats.xml')
92 # primary_stats = XmlSerializer.deserialize(primary_stats_file) 94 # primary_stats = XmlSerializer.deserialize(primary_stats_file)
93 # secondary_stats_file = \ 95 # secondary_stats_file = \
94 # vfs.VFS.open('character_scripts/secondary_stats.xml') 96 # vfs.VFS.open('character_scripts/secondary_stats.xml')
95 # secondary_stats = XmlSerializer.deserialize(secondary_stats_file) 97 # secondary_stats = XmlSerializer.deserialize(secondary_stats_file)
96
97 def reset_character(self):
98 primary_stats = [] 98 primary_stats = []
99 secondary_stats = [] 99 secondary_stats = []
100 inventory = [] 100 inventory = []
101 for x in xrange(self.INV_SLOTS): 101 for x in xrange(self.INV_SLOTS):
102 inventory.append(None) 102 inventory.append(None)