open_toontown_panda3d/direct/src/interval/waitInterval.cxx

38 lines
1012 B
C++

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file waitInterval.cxx
* @author drose
* @date 2002-09-12
*/
#include "waitInterval.h"
#include "config_interval.h"
TypeHandle WaitInterval::_type_handle;
/**
* Advances the time on the interval. The time may either increase (the
* normal case) or decrease (e.g. if the interval is being played by a
* slider).
*/
void WaitInterval::
priv_step(double t) {
// The WaitInterval is normally not run directly; it just fills up time when
// constructing a MetaInterval (specifically, a Sequence).
#ifndef NDEBUG
if (verify_intervals) {
interval_cat.info()
<< "running WaitInterval. Intentional?\n";
}
#endif
check_started(get_class_type(), "priv_step");
_state = S_started;
_curr_t = t;
}