1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #include "nel/misc/types_nl.h"
25 #include "entity_cl.h"
27 #include "nel/3d/u_particle_system_instance.h"
34 * \author David Fleury, Olivier Cado
35 * \author Nevrax France
38 class CFxCL
: public CEntityCL
41 NLMISC_DECLARE_CLASS(CFxCL
);
48 /// Build the entity from a sheet.
49 virtual bool build( const CEntitySheet
*sheet
);
51 /// Load a FX object (.ps file) (delete the previous object)
52 bool setFx( const std::string
&fileName
);
56 /// Initialize properties of the entity (according to the class).
57 virtual void initProperties() { properties().selectable( false ); }
59 /// Update the item position.
60 virtual void updateVisualPropertyPos(const NLMISC::TGameCycle
&gameCycle
, const sint64
&prop
, const NLMISC::TGameCycle
&pI
);
62 // Update the position of the entity after the motion.
63 //virtual void updatePos(const NLMISC::TTime &time, CEntityCL *target);
65 // Method called each frame to manage the entity after the clipping test if the primitive is visible.
66 //virtual void updateVisible(const NLMISC::TTime &time, CEntityCL *target);
68 /// Draw the selection Box
69 virtual void drawBox();
76 const CFXSheet
*_FXSheet
;