Author: dmeyer
Date: Tue Apr 10 12:58:16 2007
New Revision: 9429
Modified:
trunk/ui/src/games/player.py
Log:
remove suspend/resume since it does not work for games
Modified: trunk/ui/src/games/player.py
==============================================================================
--- trunk/ui/src/games/player.py (original)
+++ trunk/ui/src/games/player.py Tue Apr 10 12:58:16 2007
@@ -124,40 +124,6 @@
self.status = STATUS_STOPPING
- def can_suspend(self):
- """
- Return true since it is possible to stop the game. If it is allways the
- best thing to just stop a game is more questionable. Maybe False would
- be better.
- """
- return True
-
-
- def suspend(self):
- """
- Release the audio, video, joystick resource. (Stop the game)
- """
- if not self.status == STATUS_RUNNING:
- yield False
- self.status = STATUS_STOPPING
- self.player.stop()
- yield kaa.notifiert.YieldCallback(self.player.signals['end'])
- self.free_resources()
- yield True
-
-
- def resume(self):
- """
- Replay the game? At the moment this does nothing. The game won't
- restart.
- """
- # restart the handler stoped by this handler before since we don't
- # run anymore
- if not self.status == STATUS_RUNNING:
- return False
- self.resume_all()
- return True
-
def eventhandler(self, event):
"""
React on events and do the right command with the game.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog