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

A class representing a ward effect in the game. More...

Inheritance diagram for CardRPG.Ward:
CardRPG.ITriggerEffect CardRPG.IHangingEffect CardRPG.Armor CardRPG.DefenseWard CardRPG.Prism

Public Member Functions

 Ward (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 ward effect in the game.

Member Function Documentation

◆ Activate()

void CardRPG.Ward.Activate ( Dueler dueler)
abstract

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

Parameters
dueler

Implements CardRPG.IHangingEffect.

◆ CalculateModifier()

float CardRPG.Ward.CalculateModifier ( float value)
abstract

Calculate the modifier based on the given value.

Parameters
value
Returns

Implements CardRPG.ITriggerEffect.

◆ Deactivate()

void CardRPG.Ward.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.Ward.Description
getset

The description of the effect.

Implements CardRPG.IHangingEffect.

◆ Element

int CardRPG.Ward.Element
getset

The element of the effect.

Implements CardRPG.IHangingEffect.

◆ Modifier

int CardRPG.Ward.Modifier
getset

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

Implements CardRPG.IHangingEffect.

◆ Name

string CardRPG.Ward.Name
getset

The name of the effect.

Implements CardRPG.IHangingEffect.

◆ Sprite

virtual Sprite CardRPG.Ward.Sprite
get

The sprite representing the effect.

Implements CardRPG.IHangingEffect.


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