CardRPG 1.0
 
Loading...
Searching...
No Matches
CardRPG.Charm Class Referenceabstract

A class representing a charm that can be applied to a dueler. More...

Inheritance diagram for CardRPG.Charm:
CardRPG.ITriggerEffect CardRPG.IHangingEffect CardRPG.AccuracyCharm CardRPG.AttackCharm CardRPG.HealCharm CardRPG.PierceCharm

Public Member Functions

 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

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 class representing a charm that can be applied to a dueler.

Member Function Documentation

◆ Activate()

void CardRPG.Charm.Activate ( Dueler dueler)
abstract

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

Parameters
dueler

Implements CardRPG.IHangingEffect.

◆ CalculateModifier()

float CardRPG.Charm.CalculateModifier ( float value)
abstract

Calculate the modifier based on the given value.

Parameters
value
Returns

Implements CardRPG.ITriggerEffect.

◆ Deactivate()

void CardRPG.Charm.Deactivate ( Dueler dueler)
abstract

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

Parameters
dueler

Implements CardRPG.IHangingEffect.

Property Documentation

◆ Description

string CardRPG.Charm.Description
getset

The description of the effect.

Implements CardRPG.IHangingEffect.

◆ Element

int CardRPG.Charm.Element
getset

The element of the effect.

Implements CardRPG.IHangingEffect.

◆ Modifier

int CardRPG.Charm.Modifier
getset

The modifier value of the effect, which can be positive or negative.

Implements CardRPG.IHangingEffect.

◆ Name

string CardRPG.Charm.Name
getset

The name of the effect.

Implements CardRPG.IHangingEffect.

◆ Sprite

virtual Sprite CardRPG.Charm.Sprite
get

The sprite representing the effect.

Implements CardRPG.IHangingEffect.


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