23 BaseForce(
bool active) :
36 _active = copy._active;
37 _force_node =
nullptr;
52 out <<
"BaseForce (id " <<
this <<
")";
59 write(std::ostream &out,
int indent_level)
const {
61 <<
"BaseForce (id " <<
this <<
"):\n";
63 indent(out, indent_level + 2)
66 out << _force_node_path <<
"\n";
71 indent(out, indent_level + 2)
72 <<
"_active " << _active <<
"\n";
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
virtual ~BaseForce()
destructor
pure virtual base class for all forces that could POSSIBLY exist.
virtual void write(std::ostream &out, int indent_level=0) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.