Module MyGameTimer :: Class MY_SingleTimer
[hide private]
[frames] | no frames]

Class MY_SingleTimer

source code

object --+
         |
        MY_SingleTimer

singleton class of the ingame timer; to know what time it is ;)

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setCurrentTime(self, scene)
sets the current game time
source code
 
setPassedTime(self, scene)
sets the iassed ingame time
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(self, *args, **kargs) source code
Class Variables [hide private]
  __instance = None
Float NOW = 0
the current time in the game
Float AGO = 0
the last set current game time
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(self, *args, **kargs)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

setCurrentTime(self, scene)

source code 

sets the current game time

Parameters:
  • scene (KX_Scene) - the blender game scene where all objects are bind to

setPassedTime(self, scene)

source code 

sets the iassed ingame time

Parameters:
  • scene (KX_Scene) - the blender game scene where all objects are bind to