mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 19:34:18 -04:00
25 lines
512 B
Python
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
|