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

def gameclock::HourglassGame::start (   self  ) 

reimplement the start() function altogether

make sure all the clocks are started and they are in the right direction

Reimplemented from gameclock::Game.

Definition at line 284 of file gameclock.py.

00284                    :
        """reimplement the start() function altogether

        make sure all the clocks are started and they are in the right direction
        """
        p = self.first_clock
        while p:
            p.start()
            p.update()
            # reverse the other clocks
            if p == self.cur_clock:
                p.factor = -1
            else:
                p.factor = 1
            p = p.next

    def end_turn(self):


Generated by  Doxygen 1.6.0   Back to index