Panda3D
|
00001 // Filename: waitInterval.cxx 00002 // Created by: drose (12Sep02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #include "waitInterval.h" 00016 #include "config_interval.h" 00017 00018 TypeHandle WaitInterval::_type_handle; 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: WaitInterval::priv_step 00022 // Access: Published, Virtual 00023 // Description: Advances the time on the interval. The time may 00024 // either increase (the normal case) or decrease 00025 // (e.g. if the interval is being played by a slider). 00026 //////////////////////////////////////////////////////////////////// 00027 void WaitInterval:: 00028 priv_step(double t) { 00029 // The WaitInterval is normally not run directly; it just fills up 00030 // time when constructing a MetaInterval (specifically, a Sequence). 00031 #ifndef NDEBUG 00032 if (verify_intervals) { 00033 interval_cat.info() 00034 << "running WaitInterval. Intentional?\n"; 00035 } 00036 #endif 00037 check_started(get_class_type(), "priv_step"); 00038 _state = S_started; 00039 _curr_t = t; 00040 }