Mercurial > fife-parpg
diff demos/rpg/scripts/gamecontroller.py @ 560:69d50e751c9a
Lots of changes.
- Added the Serializer class
- Made exceptions a little more usable
- Added actor attributes (not used yet but will be with the combat engine)
- Made the quest dialogs more customizable
- Many other small changes
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 23 Jun 2010 19:20:24 +0000 |
parents | 718e154a43c8 |
children | f85762e634c5 |
line wrap: on
line diff
--- a/demos/rpg/scripts/gamecontroller.py Tue Jun 22 15:41:36 2010 +0000 +++ b/demos/rpg/scripts/gamecontroller.py Wed Jun 23 19:20:24 2010 +0000 @@ -22,7 +22,6 @@ # Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # #################################################################### -# This is the rio de hola client for FIFE. import sys, os, re, math, random, shutil, glob, uuid @@ -305,9 +304,10 @@ for filename in glob.glob(os.path.join("saves" , "*.xml")): os.remove(filename) - - self._questmanager.destroy() - self._questmanager.initializeQuests() + + + self._questmanager.reset() + self._questmanager.deserialize() mapname = self._settings.get("RPG", "TownMapFile", "town") self.loadMap(mapname) @@ -358,7 +358,7 @@ self._listener.detach() self._scene.destroyScene() - self._questmanager.destroy() + self._questmanager.reset() self._scene = None self._instancerenderer = None