Panda3D
waitInterval.h
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.h
10  * @author drose
11  * @date 2002-09-12
12  */
13 
14 #ifndef WAITINTERVAL_H
15 #define WAITINTERVAL_H
16 
17 #include "directbase.h"
18 #include "cInterval.h"
19 
20 /**
21  * This interval does absolutely nothing, and is mainly useful for marking
22  * time between other intervals within a sequence.
23  */
24 class EXPCL_DIRECT_INTERVAL WaitInterval : public CInterval {
25 PUBLISHED:
26  INLINE explicit WaitInterval(double duration);
27 
28  virtual void priv_step(double t);
29 
30 public:
31  static TypeHandle get_class_type() {
32  return _type_handle;
33  }
34  static void init_type() {
35  CInterval::init_type();
36  register_type(_type_handle, "WaitInterval",
37  CInterval::get_class_type());
38  }
39  virtual TypeHandle get_type() const {
40  return get_class_type();
41  }
42  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
43 
44 private:
45  static TypeHandle _type_handle;
46 };
47 
48 #include "waitInterval.I"
49 
50 #endif
virtual void priv_step(double t)
Advances the time on the interval.
Definition: cInterval.cxx:357
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
The base class for timeline components.
Definition: cInterval.h:35
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
This interval does absolutely nothing, and is mainly useful for marking time between other intervals ...
Definition: waitInterval.h:24
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.