58 return (_state == S_initial || _state == S_final);
98 _auto_pause = auto_pause;
117 _auto_finish = auto_finish;
136 _wants_t_callback = wants_t_callback;
137 _last_t_callback = -1.0;
146 return _wants_t_callback;
180 _last_t_callback =
get_t();
189INLINE
void CInterval::
199INLINE
void CInterval::
200check_stopped(
TypeHandle type,
const char *method_name)
const {
201 if (_state == S_started) {
202 interval_cat.warning()
203 << type.
get_name() <<
"::" << method_name <<
"() called for "
204 <<
get_name() <<
" in state " << _state <<
".\n";
205 nassertv(!verify_intervals);
212INLINE
void CInterval::
213check_started(
TypeHandle type,
const char *method_name)
const {
214 if (_state != S_started && _state != S_paused) {
215 interval_cat.warning()
216 << type.
get_name() <<
"::" << method_name <<
"() called for "
217 <<
get_name() <<
" in state " << _state <<
".\n";
218 nassertv(!verify_intervals);
223operator << (std::ostream &out,
const CInterval &ival) {
This object holds a number of currently-playing intervals and is responsible for advancing them each ...
The base class for timeline components.
bool check_t_callback()
Returns true if the wants_t_callback() flag is true and the interval's t value has changed since the ...
get_manager
Returns the CIntervalManager object which will be responsible for playing this interval.
bool get_wants_t_callback() const
Returns the state of the 'wants_t_callback' flag.
void set_wants_t_callback(bool wants_t_callback)
Changes the state of the 'wants_t_callback' flag.
set_manager
Indicates the CIntervalManager object which will be responsible for playing this interval.
get_name
Returns the interval's name.
get_auto_pause
Returns the state of the 'auto_pause' flag.
get_duration
Returns the duration of the interval in seconds.
is_stopped
Returns true if the interval is in either its initial or final states (but not in a running or paused...
set_done_event
Sets the event that is generated whenever the interval reaches its final state, whether it is explici...
set_auto_pause
Changes the state of the 'auto_pause' flag.
get_open_ended
Returns the state of the "open_ended" flag.
get_state
Indicates the state the interval believes it is in: whether it has been started, is currently in the ...
get_done_event
Returns the event that is generated whenever the interval reaches its final state,...
get_t
Returns the current time of the interval: the last value of t passed to priv_initialize(),...
set_auto_finish
Changes the state of the 'auto_finish' flag.
get_auto_finish
Returns the state of the 'auto_finish' flag.
TypeHandle is the identifier used to differentiate C++ class types.
get_name
Returns the name of the type.