17 INLINE
const std::string &CInterval::
25 INLINE
double CInterval::
26 get_duration()
const {
38 INLINE
bool CInterval::
39 get_open_ended()
const {
47 INLINE CInterval::State CInterval::
56 INLINE
bool CInterval::
58 return (_state == S_initial || _state == S_final);
76 INLINE
const std::string &CInterval::
77 get_done_event()
const {
85 INLINE
double CInterval::
98 _auto_pause = auto_pause;
104 INLINE
bool CInterval::
105 get_auto_pause()
const {
117 _auto_finish = auto_finish;
123 INLINE
bool CInterval::
124 get_auto_finish()
const {
136 _wants_t_callback = wants_t_callback;
137 _last_t_callback = -1.0;
146 return _wants_t_callback;
168 get_manager()
const {
180 _last_t_callback =
get_t();
189 INLINE
void CInterval::
199 INLINE
void CInterval::
200 check_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);
212 INLINE
void CInterval::
213 check_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);
222 INLINE std::ostream &
223 operator << (std::ostream &out,
const CInterval &ival) {
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.
The base class for timeline components.
bool get_wants_t_callback() const
Returns the state of the 'wants_t_callback' flag.
get_name
Returns the interval's name.
get_name
Returns the name of the type.
set_auto_finish
Changes the state of the 'auto_finish' flag.
get_t
Returns the current time of the interval: the last value of t passed to priv_initialize(),...
This object holds a number of currently-playing intervals and is responsible for advancing them each ...
void set_wants_t_callback(bool wants_t_callback)
Changes the state of the 'wants_t_callback' flag.
TypeHandle is the identifier used to differentiate C++ class types.
bool check_t_callback()
Returns true if the wants_t_callback() flag is true and the interval's t value has changed since the ...
set_manager
Indicates the CIntervalManager object which will be responsible for playing this interval.