Fix classique titles display
[ryzomcore.git] / ryzom / client / src / fx_cl.h
blobf1bed3cbd91784ca9df655a47aa1db3e5d1da298
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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/>.
19 #ifndef NL_FX_CL_H
20 #define NL_FX_CL_H
22 // Misc
23 #include "nel/misc/types_nl.h"
24 // Client
25 #include "entity_cl.h"
26 // 3D
27 #include "nel/3d/u_particle_system_instance.h"
30 class CFXSheet;
32 /**
33 * <Class description>
34 * \author David Fleury, Olivier Cado
35 * \author Nevrax France
36 * \date 2001, 2003
38 class CFxCL : public CEntityCL
40 public:
41 NLMISC_DECLARE_CLASS(CFxCL);
43 /// Constructor
44 CFxCL();
45 /// Destructor
46 virtual ~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 );
54 protected:
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();
71 private:
73 /// Init
74 void init();
76 const CFXSheet *_FXSheet;
77 bool _BadBuild;
81 #endif // NL_FX_CL_H
83 /* End of fx_cl.h */