コード例 #1
0
    def requestQuit(self):
        """
		Sends the quit command to the application's listener.  We could set
		self.quitRequested to true also but this is a good example on how
		to build and dispatch a fife.Command.
		"""
        cmd = fife.Command()
        cmd.setSource(None)
        cmd.setCommandType(fife.CMD_QUIT_GAME)
        self.engine.getEventManager().dispatchCommand(cmd)
コード例 #2
0
 def onQuitButtonPress(self):
     cmd = fife.Command()
     cmd.setSource(None)
     cmd.setCommandType(fife.CMD_QUIT_GAME)
     self.engine.getEventManager().dispatchCommand(cmd)
コード例 #3
0
ファイル: run.py プロジェクト: whiterabbitengine/fifeplusplus
 def requestQuit(self):
     cmd = fife.Command()
     cmd.setSource(None)
     cmd.setCommandType(fife.CMD_QUIT_GAME)
     self.engine.getEventManager().dispatchCommand(cmd)