Ejemplo n.º 1
0
    def show_game(self, adventurer, location, text, qaikuid, force_store = False):
        if self.location_listener is not None:
            adventurer.disconnect(self.location_listener)

        if adventurer.apikey is not None:
            # Fetch current adventures from Qaiku
            #self.status.set_text("Fetching adventures from Qaiku...")
            self.blyton.adventures_from_qaiku(adventurer.apikey)

        # Build adventure list
        #self.status.set_text("Starting the game...")
        self.blyton.refresh_adventures(adventurer)

        #prepare and show UI
        game = gameboard.UI(self.blyton, adventurer)
        game.show_all()

        # Remove the splash screen
        hildon.hildon_gtk_window_set_progress_indicator(self.splash, 0)
        self.splash.destroy()
Ejemplo n.º 2
0
 def remove_adventurer(self, adventurer):
     #print "Removing %s from adventure %s" % (adventurer.nick, self.name)
     if adventurer in self.adventurers:
         self.adventurers.remove(adventurer)
     adventurer.disconnect(adventurer.mission_listener)