Add infos into target window
[ryzomcore.git] / ryzom / server / src / sabrina / s_link_effect_dot.h
blob801f700cdf4d6440599d310ea3a4829dd7f78fb0
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_DOT_H
20 #define RY_S_LINK_EFFECT_DOT_H
22 #include "nel/misc/types_nl.h"
23 #include "s_link_effect.h"
25 class CSLinkEffectDot : public CSLinkEffectOffensive
27 public:
28 inline CSLinkEffectDot(
29 const TDataSetRow & creatorRowId,
30 const TDataSetRow & targetRowId,
31 sint32 cost,
32 SCORES::TScores energyCost,
33 SKILLS::ESkills skill,
34 DMGTYPE::EDamageType dmgType,
35 uint8 power,
36 sint32 dmgHp,sint32 dmgSap,sint32 dmgSta )
37 :CSLinkEffectOffensive ( creatorRowId,targetRowId,EFFECT_FAMILIES::Dot,cost,energyCost, skill, 0,power),
38 _DmgType( dmgType ),
39 _DmgHp( dmgHp), _DmgSap( dmgSap), _DmgSta(dmgSta)
43 DMGTYPE::EDamageType getDamageType(){ return _DmgType; }
45 /**
46 * apply the effects of the... effect
47 * \return true if the effect must be removed
49 bool update(uint32 & updateFlag);
53 protected:
54 DMGTYPE::EDamageType _DmgType;
55 sint32 _DmgHp;
56 sint32 _DmgSap;
57 sint32 _DmgSta;
61 #endif // RY_S_LINK_EFFECT_DOT_H
63 /* End of s_link_effect_dot.h */