Panda3D
 All Classes Functions Variables Enumerations
pointParticle.h
1 // Filename: pointParticle.h
2 // Created by: charles (19Jun00)
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 POINTPARTICLE_H
16 #define POINTPARTICLE_H
17 
18 #include "baseParticle.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Class : PointParticle
22 // Description : Describes a particle that requires representation
23 // by a point (pixel, sparkle, billboard)
24 ////////////////////////////////////////////////////////////////////
25 class EXPCL_PANDAPHYSICS PointParticle : public BaseParticle {
26 public:
27  PointParticle(PN_stdfloat lifespan = 0.0f, bool alive = false);
28  PointParticle(const PointParticle &copy);
29  virtual ~PointParticle();
30 
31  virtual void init();
32  virtual void die();
33  virtual void update();
34 
35  virtual PhysicsObject *make_copy() const;
36 
37  virtual void output(ostream &out) const;
38  virtual void write(ostream &out, int indent=0) const;
39 };
40 
41 #endif // POINTPARTICLE_H
virtual PhysicsObject * make_copy() const =0
dynamic copy.
Describes a particle that requires representation by a point (pixel, sparkle, billboard) ...
Definition: pointParticle.h:25
A body on which physics will be applied.
Definition: physicsObject.h:29
virtual void write(ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
An individual, physically-modelable particle abstract base class.
Definition: baseParticle.h:26
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.