Logo Search packages:      
Sourcecode: gameclock version File versions  Download package

def gameclock::Game::end_turn (   self  ) 

end the turn

this is the handler for the main button. it will stop the
active clock and start the other and switch the active clock

Reimplemented in gameclock::FisherGame, gameclock::ClassicGame, and gameclock::HourglassGame.

Definition at line 180 of file gameclock.py.

00180                       :
        """end the turn
        
        this is the handler for the main button. it will stop the
        active clock and start the other and switch the active clock
        """
        self.cur_clock.stop()
        # XXX: we might lose a few ms here
        self.cur_clock = self.next_clock()
        self.cur_clock.start()
        self.turns += 1

    def next_clock(self):


Generated by  Doxygen 1.6.0   Back to index