panda3d/direct/src/interval/WaitInterval.py
2001-02-28 02:25:46 +00:00

25 lines
512 B
Python

"""WaitInterval module: contains the Wait class"""
from PandaModules import *
import Interval
class Wait(Interval.Interval):
waitNum = 1
# special methods
def __init__(self, duration, name=None, t0=0.0,
type=Interval.PREVIOUS_END):
"""__init__(duration, name, t0, type)
"""
if (name == None):
self.name = 'wait-%d' % Wait.waitNum
Wait.waitNum = Wait.waitNum + 1
else:
self.name = name
self.duration = duration
self.startTime = 0.0
self.type = type