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/>.
22 #include "nel/misc/types_nl.h"
23 #include "damage_types.h"
24 #include "effect_families.h"
35 UnknownSpellMode
= SpellModeCount
,
45 UnknownSpellType
= SpellTypeCount
,
47 // TODO: this enum is also used for attack, so could name it in a more general way
56 UnknownSpellCastStage
= SpellCastStageCount
,
59 const std::string
& toString(TSpellMode mode
);
60 const std::string
& toString(TSpellType mode
);
61 const std::string
& toString(TSpellCastStage mode
);
63 TSpellMode
toSpellMode(const std::string
&str
);
65 // the number of possible powers for a spell
66 // TODO : this is also used for melee, range, so name it in a more general way in another namespace (NUM_ATTACK_POWER ?)
67 const uint NUM_SPELL_POWER
= 5;
69 // projectile speed in meters per second
70 const float PROJECTILE_SPEED
= 20.f
;
72 /** the value of each enum should match the value in spells.spell_list
73 * and in links.id_to_string_array
107 // range weapon (reuse magic system for now)
108 RangeWeaponFirst
= 128,
109 RangeWeaponGattling
= RangeWeaponFirst
,
110 RangeWeaponMissile
= 129,
114 TMagicFx
toMagicFx( DMGTYPE::EDamageType type
,bool Link
);
115 TMagicFx
toMagicFx( EFFECT_FAMILIES::TEffectFamily effect
);
116 TMagicFx
healtoMagicFx( sint32 healHp
, sint32 healSap
, sint32 healSta
, bool link
);
119 // enum for the auras fxs
137 TeleportKami
= 15, // No effect aura
138 TeleportKara
= 16, // No effect aura
139 TeleportMarauder
= 17, // No effect aura
140 LevelUp
= 18, // No effect aura
145 #endif // RY_MAGIC_FX_H
147 /* End of magic_fx.h */