#include <timedCycle.h>
Public Member Functions | |
| TimedCycle () | |
| TimedCycle (float cycle_time, int element_count) | |
| void | set_element_count (int element_count) |
| Set the number of elements being cycled through. | |
| void | set_cycle_time (float cycle_time) |
| Set the number of elements being cycled through. | |
| int | next_element () |
| Set the number of elements being cycled through. | |
| void | write_datagram (Datagram &me) |
| Writes the contents of this object to the datagram for shipping out to a Bam file. | |
| void | fillin (DatagramIterator &scan) |
| This internal function is called by make_TimedCycle to read in all of the relevant data from the BamFile for the new TimedCycle. | |
Private Attributes | |
| ClockObject * | _global_clock |
| float | _cycle_time |
| float | _inv_cycle_time |
| double | _next_switch |
| int | _current_child |
| int | _element_count |
All time variables are assumed to be set in seconds.
Definition at line 51 of file timedCycle.h.
|
|
Definition at line 30 of file timedCycle.I. References _global_clock, and ClockObject::get_global_clock(). |
|
||||||||||||
|
Definition at line 48 of file timedCycle.I. References _cycle_time, _global_clock, _inv_cycle_time, and _next_switch. |
|
|
This internal function is called by make_TimedCycle to read in all of the relevant data from the BamFile for the new TimedCycle.
Definition at line 55 of file timedCycle.cxx. |
|
|
Set the number of elements being cycled through.
Definition at line 107 of file timedCycle.I. |
|
|
Set the number of elements being cycled through.
Definition at line 82 of file timedCycle.I. |
|
|
Set the number of elements being cycled through.
Definition at line 68 of file timedCycle.I. References _cycle_time, _global_clock, _inv_cycle_time, _next_switch, ClockObject::get_frame_time(), INLINE, and nassertv. |
|
|
Writes the contents of this object to the datagram for shipping out to a Bam file.
Definition at line 37 of file timedCycle.cxx. References _current_child, _cycle_time, _element_count, _global_clock, _inv_cycle_time, _next_switch, DatagramIterator::get_float32(), ClockObject::get_global_clock(), ClockObject::get_real_time(), and DatagramIterator::get_uint16(). |
|
|
Definition at line 70 of file timedCycle.h. Referenced by write_datagram(). |
|
|
Definition at line 67 of file timedCycle.h. Referenced by set_element_count(), TimedCycle(), and write_datagram(). |
|
|
Definition at line 71 of file timedCycle.h. Referenced by write_datagram(). |
|
|
Definition at line 66 of file timedCycle.h. Referenced by set_element_count(), TimedCycle(), and write_datagram(). |
|
|
Definition at line 68 of file timedCycle.h. Referenced by set_element_count(), TimedCycle(), and write_datagram(). |
|
|
Definition at line 69 of file timedCycle.h. Referenced by set_element_count(), TimedCycle(), and write_datagram(). |
1.3