CT (of Cycle)

class CT

Defined in Cycle.sc.

CT (or “cycle to”) is a cycler that cycles to a specific cel, then stops.

Example usage:

// Cycle the door forward to cel 4, then stop.
(door:setCycle(CT 4 cdFORWARD))

Subclasses: End, Beg.

Properties

Inherited from Cycle:

Property Description
client The object to which this is attached.
caller The object that is cue()’d when the cycle is complete.
cycleDir cdFORWARD or cdBACKWARD.
cycleCnt  
completed  

Defined in CT:

Property Description
endCel  

Methods

init(theClient theEndCel theCycleDir [theCaller])
Parameters:
  • theClient (heapPtr) – The Prop to which this is attached.
  • theEndCel (number) – The cel number that we are cycling to.
  • theCycleDir (number) – cdFORWARD or cdBACKWARD.
  • theCaller (heapPtr) – Optional object on which we call cue() when the cycle is finished.
doit()
cycleDone()