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

def gameclock::HourglassGame::end_turn (   self  ) 

reimplement the end_turn function altogether

we go to the next clock, stop it, reverse its direction and
start it again

Reimplemented from gameclock::Game.

Definition at line 300 of file gameclock.py.

00300                       :
        """reimplement the end_turn function altogether

        we go to the next clock, stop it, reverse its direction and
        start it again
        """
        self.cur_clock = self.next_clock()
        p = self.first_clock
        while p:
            p.stop()
            if p == self.cur_clock:
                p.factor = -1
            else:
                p.factor = 1
            p.start()
            p = p.next
        self.turns += 1

class GameclockGtkUI:


Generated by  Doxygen 1.6.0   Back to index