Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / sabrina / s_link_effect_hot.h
blob3cad2f15d509fe5c1c6177def64e37e680efa07e
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 RY_S_LINK_EFFECT_HOT_H
20 #define RY_S_LINK_EFFECT_HOT_H
22 #include "nel/misc/types_nl.h"
25 #include "nel/misc/types_nl.h"
26 #include "s_link_effect.h"
28 class CSLinkEffectHot : public CSLinkEffect
30 public:
31 inline CSLinkEffectHot( const TDataSetRow & creatorRowId,
32 const TDataSetRow & targetRowId,
33 sint32 cost,
34 SCORES::TScores energyCost,
35 SKILLS::ESkills skill,
36 uint8 power,
37 sint32 healHp, sint32 healSap, sint32 healSta)
38 :CSLinkEffect ( creatorRowId,targetRowId,EFFECT_FAMILIES::Hot,cost,energyCost,skill,0,power),
39 _HealHp(healHp),_HealSap(healSap),_HealSta(healSta)
43 /**
44 * apply the effects of the... effect
45 * \return true if the effect must be removed
47 bool update(uint32 & updateFlag);
49 protected:
50 void applyOnScore( CEntityBase * caster, CEntityBase * target,SCORES::TScores scoreType, sint32 value );
51 sint32 _HealHp;
52 sint32 _HealSap;
53 sint32 _HealSta;
57 #endif // RY_S_LINK_EFFECT_HOT_H
59 /* End of s_link_effect_hot.h */