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/>.
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
28 inline CSLinkEffectDot(
29 const TDataSetRow
& creatorRowId
,
30 const TDataSetRow
& targetRowId
,
32 SCORES::TScores energyCost
,
33 SKILLS::ESkills skill
,
34 DMGTYPE::EDamageType dmgType
,
36 sint32 dmgHp
,sint32 dmgSap
,sint32 dmgSta
)
37 :CSLinkEffectOffensive ( creatorRowId
,targetRowId
,EFFECT_FAMILIES::Dot
,cost
,energyCost
, skill
, 0,power
),
39 _DmgHp( dmgHp
), _DmgSap( dmgSap
), _DmgSta(dmgSta
)
43 DMGTYPE::EDamageType
getDamageType(){ return _DmgType
; }
46 * apply the effects of the... effect
47 * \return true if the effect must be removed
49 bool update(uint32
& updateFlag
);
54 DMGTYPE::EDamageType _DmgType
;
61 #endif // RY_S_LINK_EFFECT_DOT_H
63 /* End of s_link_effect_dot.h */