Planeshift
pseffectobjparticles.h
Go to the documentation of this file.
1 /*
2  * Author: Andrew Robberts
3  *
4  * Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef PS_EFFECT_OBJ_PARTICLES_HEADER
21 #define PS_EFFECT_OBJ_PARTICLES_HEADER
22 
23 #if 1
24 #include "pseffectobj.h"
25 
26 class psEffect2DRenderer;
27 
28 //struct iParticlesObjectState;
29 
35 {
36 public:
37 
40 
41  // inheritted function overloads
42  bool Load(iDocumentNode* node, iLoaderContext* ldr_context);
43  bool Render(const csVector3 &up);
44  bool Update(csTicks elapsed);
45  psEffectObj* Clone() const;
46 
47 private:
48 
52  bool PostSetup(iLoaderContext* ldr_context);
53 
54  csString factName;
55 
56  //csRef<iParticlesObjectState> pstate;
57  bool isAnimating;
58 };
59 
62 #endif
63 #endif
bool Load(iDocumentNode *node, iLoaderContext *ldr_context)
Loads the effect object from an xml node.
The manager of all 2D effect elements.
psEffectObj * Clone() const
Clones the effect object.
bool Render(const csVector3 &up)
Renders the effect.
An effect is not much more than a collection of effect objects.
Definition: pseffectobj.h:207
bool Update(csTicks elapsed)
Updates the spell effect – called every frame.
psEffectObjParticles(iView *parentView, psEffect2DRenderer *renderer2d)
psEffect2DRenderer * renderer2d
Definition: pseffectobj.h:529