Panda3D
waitInterval.h
1 // Filename: waitInterval.h
2 // Created by: drose (12Sep02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef WAITINTERVAL_H
16 #define WAITINTERVAL_H
17 
18 #include "directbase.h"
19 #include "cInterval.h"
20 
21 ////////////////////////////////////////////////////////////////////
22 // Class : WaitInterval
23 // Description : This interval does absolutely nothing, and is mainly
24 // useful for marking time between other intervals
25 // within a sequence.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_DIRECT WaitInterval : public CInterval {
28 PUBLISHED:
29  INLINE WaitInterval(double duration);
30 
31  virtual void priv_step(double t);
32 
33 public:
34  static TypeHandle get_class_type() {
35  return _type_handle;
36  }
37  static void init_type() {
38  CInterval::init_type();
39  register_type(_type_handle, "WaitInterval",
40  CInterval::get_class_type());
41  }
42  virtual TypeHandle get_type() const {
43  return get_class_type();
44  }
45  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
46 
47 private:
48  static TypeHandle _type_handle;
49 };
50 
51 #include "waitInterval.I"
52 
53 #endif
54 
virtual void priv_step(double t)
Advances the time on the interval.
Definition: cInterval.cxx:407
The base class for timeline components.
Definition: cInterval.h:39
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
This interval does absolutely nothing, and is mainly useful for marking time between other intervals ...
Definition: waitInterval.h:27