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

def gameclock::HourglassGame::__init__ (   self,
  clocks,
  miliseconds 
)

this overrides the base constructor to make only one clock have an initial time

basically, this is to represent that when you start it, the hour glass is empty on one side

Reimplemented from gameclock::Game.

Definition at line 273 of file gameclock.py.

00273                                            :
        """this overrides the base constructor to make only one clock have an initial time

        basically, this is to represent that when you start it, the hour glass is empty on one side
        """
        Game.__init__(self, clocks, miliseconds)
        p = self.first_clock.next
        while p:
            p.time = 0
            p = p.next

    def start(self):


Generated by  Doxygen 1.6.0   Back to index