Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

direct/src/interval/waitInterval.cxx

Go to the documentation of this file.
00001 // Filename: waitInterval.cxx
00002 // Created by:  drose (12Sep02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "waitInterval.h"
00020 #include "config_interval.h"
00021 
00022 TypeHandle WaitInterval::_type_handle;
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //     Function: WaitInterval::priv_step
00026 //       Access: Published, Virtual
00027 //  Description: Advances the time on the interval.  The time may
00028 //               either increase (the normal case) or decrease
00029 //               (e.g. if the interval is being played by a slider).
00030 ////////////////////////////////////////////////////////////////////
00031 void WaitInterval::
00032 priv_step(double t) {
00033   // The WaitInterval is normally not run directly; it just fills up
00034   // time when constructing a MetaInterval (specifically, a Sequence).
00035 #ifndef NDEBUG
00036   if (verify_intervals) {
00037     interval_cat.info() 
00038       << "running WaitInterval.  Intentional?\n";
00039   }
00040 #endif
00041   check_started(get_class_type(), "priv_step");
00042   _state = S_started;
00043   _curr_t = t;
00044 }

Generated on Fri May 2 01:37:56 2003 for Direct by doxygen1.3