CardRPG 1.0
 
Loading...
Searching...
No Matches
CardRPG.HealCharm Class Reference

A charm that modifies the healing effect of a dueler's next heal action. More...

Inheritance diagram for CardRPG.HealCharm:
CardRPG.Charm CardRPG.ITriggerEffect CardRPG.IHangingEffect

Public Member Functions

 HealCharm (string name, int element, int modifier)
 
override void Activate (Dueler dueler)
 The activate method is called to apply the effect to the Dueler.
 
override float CalculateModifier (float value)
 Calculate the modifier based on the given value.
 
override void Deactivate (Dueler dueler)
 The deactivate method is called to remove the effect from the Dueler.
 
- Public Member Functions inherited from CardRPG.Charm
 Charm (string name, int element, int modifier)
 
void Activate (Dueler dueler)
 The activate method is called to apply the effect to the Dueler.
 
void Deactivate (Dueler dueler)
 The deactivate method is called to remove the effect from the Dueler.
 
float CalculateModifier (float value)
 Calculate the modifier based on the given value.
 

Properties

override Sprite Sprite [get]
 The sprite representing the effect.
 
- Properties inherited from CardRPG.Charm
string Name [get, set]
 The name of the effect.
 
int Element [get, set]
 The element of the effect.
 
string Description [get, set]
 The description of the effect.
 
int Modifier [get, set]
 The modifier value of the effect, which can be positive or negative.
 
virtual Sprite Sprite [get]
 The sprite representing the effect.
 

Detailed Description

A charm that modifies the healing effect of a dueler's next heal action.

Member Function Documentation

◆ Activate()

override void CardRPG.HealCharm.Activate ( Dueler dueler)
inline

The activate method is called to apply the effect to the Dueler.

Parameters
dueler

Implements CardRPG.IHangingEffect.

◆ CalculateModifier()

override float CardRPG.HealCharm.CalculateModifier ( float value)
inline

Calculate the modifier based on the given value.

Parameters
value
Returns

Implements CardRPG.ITriggerEffect.

◆ Deactivate()

override void CardRPG.HealCharm.Deactivate ( Dueler dueler)
inline

The deactivate method is called to remove the effect from the Dueler.

Parameters
dueler

Implements CardRPG.IHangingEffect.

Property Documentation

◆ Sprite

override Sprite CardRPG.HealCharm.Sprite
get

The sprite representing the effect.

Implements CardRPG.IHangingEffect.


The documentation for this class was generated from the following file: