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

def gameclock::Clock::__init__ (   self,
  game 
)
Setup the clock engine

The clock is stopped by default and the display is refreshed

Definition at line 49 of file gameclock.py.

                            :
        """Setup the clock engine
        
        The clock is stopped by default and the display is refreshed
        """
        self.time = game.default_time
        self.dead = self.time < 0 # calculated only after update() and should be used only this way, it is a cache
        self.game = game
        self.update()


Generated by  Doxygen 1.6.0   Back to index