Fix classique titles display
[ryzomcore.git] / ryzom / client / src / client_sheets / attack_sheet.h
blob7db587a3abf1ed24cb96cd2edbd527909cf519c1
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 CL_ATTACK_SHEET_H
20 #define CL_ATTACK_SHEET_H
22 #include "entity_sheet.h"
23 #include "fx_stick_mode.h"
25 #include "game_share/magic_fx.h"
27 #include "nel/misc/uv.h"
30 class CAttackSheet
32 public:
33 MAGICFX::TSpellMode ProjectileMode;
34 std::string AttackBeginFX; // .animation_fx_set
35 std::string AttackLoopFX; // .animation_fx_set
36 std::string AttackEndFX; // .animation_fx_set
37 std::string AttackStaticObjectCastFX; // .animation_fx_set
38 std::string AttackFailFX; // .animation_fx_set
39 std::string ProjectileFX;
40 std::string ImpactFX;
41 float ProjectileDelay;
42 float StaticObjectProjectileDelay;
43 bool IsImpactLocalised; // is the impact localised ?
44 // if so, the localisation is the same for aiming point, main impact, and physical impact, and is the localisation of the physical impact
45 // if not : projectile aiming point is given by "DefaultAimingPoint", physical damage uses its localisation, and main impact uses default localisation of fx.
47 CFXStickMode DefaultCastingPoint;
48 CFXStickMode DefaultAimingPoint;
49 bool PlayImpactFXOnlyOnMainTarget; // Only may target play the impact fx (but other target play the impact anim)
50 bool PlayImpactAnim;
51 bool LetProjectileStickedOnTarget;
52 bool ForceUseProjectileDelay;
53 bool ApplyItemOffsetToWeaponBone;
55 NLMISC::CVector AdditionnalStartOffset;
56 public:
57 // ctor
58 CAttackSheet();
59 virtual void build(const NLGEORGES::UFormElm &item, const std::string &prefix);
60 virtual void serial(NLMISC::IStream &f);
71 #endif