comparison demos/rpg/scripts/rpg.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 d0282579668c
children 90d369c788c0
comparison
equal deleted inserted replaced
559:cccff9b04f57 560:69d50e751c9a
20 # You should have received a copy of the GNU Lesser General Public 20 # You should have received a copy of the GNU Lesser General Public
21 # License along with this library; if not, write to the 21 # License along with this library; if not, write to the
22 # Free Software Foundation, Inc., 22 # Free Software Foundation, Inc.,
23 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 # #################################################################### 24 # ####################################################################
25 # This is the rio de hola client for FIFE.
26 25
27 import sys, os, re, math, random, shutil, time 26 import sys, os, re, math, random, shutil, time
28 from datetime import datetime 27 from datetime import datetime
29 28
30 from fife import fife 29 from fife import fife
173 self.engine.getEventManager().dispatchCommand(cmd) 172 self.engine.getEventManager().dispatchCommand(cmd)
174 173
175 def _pump(self): 174 def _pump(self):
176 if self._listener.quit: 175 if self._listener.quit:
177 self._gamecontroller.endGame() 176 self._gamecontroller.endGame()
178 self.quitRequested = True 177 self.quit()
179 else: 178 else:
180 self._gamecontroller.pump() 179 self._gamecontroller.pump()
181 180
182 181
183 def _getLogManager(self): 182 def _getLogManager(self):