Commit | Line | Data |
---|---|---|
cb700bcc FC |
1 | # from direct.interval.MetaInterval import Sequence |
2 | # from direct.interval.FunctionInterval import Func, Wait | |
3 | # from direct.interval.LerpInterval import LerpPosInterval | |
8ee66edd FC |
4 | |
5 | ||
cb700bcc | 6 | # class P3dSeq: |
8ee66edd | 7 | |
cb700bcc FC |
8 | # def __init__(self, *ivals): |
9 | # self.seq = Sequence(*[ival._ival for ival in ivals]) | |
10 | # #TODO: don't access a protected member | |
8ee66edd | 11 | |
cb700bcc | 12 | # def start(self): return self.seq.start() |
8ee66edd | 13 | |
cb700bcc FC |
14 | # def __add__(self, ival): |
15 | # self.seq.append(ival._ival) #TODO: don't access a protected member | |
16 | # return self.seq | |
8ee66edd FC |
17 | |
18 | ||
cb700bcc | 19 | # class P3dWait: |
8ee66edd | 20 | |
cb700bcc | 21 | # def __init__(self, time): self._ival = Wait(time) |
8ee66edd FC |
22 | |
23 | ||
cb700bcc | 24 | # class P3dPosIval: |
8ee66edd | 25 | |
cb700bcc FC |
26 | # def __init__(self, node, time=1.0, pos=(0, 0, 0), blend_type='ease'): |
27 | # btype = {'ease': 'easeInOut'}[blend_type] | |
28 | # self._ival = LerpPosInterval(node, time, pos=pos, blendType=btype) | |
8ee66edd FC |
29 | |
30 | ||
cb700bcc | 31 | # class P3dFunc: |
8ee66edd | 32 | |
cb700bcc | 33 | # def __init__(self, fun, *args): self._ival = Func(fun, *args) |