26 INLINE
void set_age(PN_stdfloat age);
27 INLINE
void set_lifespan(PN_stdfloat lifespan);
28 INLINE
void set_alive(
bool alive);
29 INLINE
void set_index(
int index);
32 INLINE PN_stdfloat get_age()
const;
33 INLINE PN_stdfloat get_lifespan()
const;
34 INLINE
bool get_alive()
const;
35 INLINE
int get_index()
const;
37 INLINE PN_stdfloat get_parameterized_age()
const;
38 INLINE PN_stdfloat get_parameterized_vel()
const;
41 virtual void init() = 0;
42 virtual void die() = 0;
43 virtual void update() = 0;
46 virtual PN_stdfloat get_theta()
const;
51 virtual void output(std::ostream &out)
const;
52 virtual void write(std::ostream &out,
int indent=0)
const;
55 BaseParticle(PN_stdfloat lifespan = 1.0f,
bool alive =
false);
62 PN_stdfloat _lifespan;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An individual, physically-modelable particle abstract base class.
virtual PhysicsObject * make_copy() const =0
dynamic copy.