Panda3D
waitInterval.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file waitInterval.cxx
10  * @author drose
11  * @date 2002-09-12
12  */
13 
14 #include "waitInterval.h"
15 #include "config_interval.h"
16 
17 TypeHandle WaitInterval::_type_handle;
18 
19 /**
20  * Advances the time on the interval. The time may either increase (the
21  * normal case) or decrease (e.g. if the interval is being played by a
22  * slider).
23  */
24 void WaitInterval::
25 priv_step(double t) {
26  // The WaitInterval is normally not run directly; it just fills up time when
27  // constructing a MetaInterval (specifically, a Sequence).
28 #ifndef NDEBUG
29  if (verify_intervals) {
30  interval_cat.info()
31  << "running WaitInterval. Intentional?\n";
32  }
33 #endif
34  check_started(get_class_type(), "priv_step");
35  _state = S_started;
36  _curr_t = t;
37 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void priv_step(double t)
Advances the time on the interval.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81