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

An effect that applies over time, such as damage over time (DoT) or heal over time (HoT). More...

Inheritance diagram for CardRPG.OTEffect:
CardRPG.IHangingEffect

Public Member Functions

 OTEffect (string name, int element, int Modifier, int remainingRounds, bool isBomb=false, int pierce=0)
 
void Activate (Dueler dueler)
 The activate method is called to apply the effect to the Dueler.
 
IEnumerator ResolveOTEffects (int rounds, Dueler target)
 Logic to resolve the over time effects each round.
 
void Deactivate (Dueler dueler)
 The deactivate method is called to remove the effect from the Dueler.
 

Public Attributes

int remainingRounds
 The number of rounds remaining for the effect.
 

Properties

string Name [get, set]
 The name of the effect.
 
int Element [get, set]
 The element of the effect.
 
int Modifier [get, set]
 The modifier value of the effect, which can be positive or negative.
 
string Description [get, set]
 The description of the effect.
 
bool IsBomb [get, set]
 Indicates if the effect is a bomb (applies all damage at once after specific rounds).
 
int Pierce [get]
 The pierce value of the effect.
 
Sprite Sprite [get]
 The sprite representing the effect.
 

Detailed Description

An effect that applies over time, such as damage over time (DoT) or heal over time (HoT).

Member Function Documentation

◆ Activate()

void CardRPG.OTEffect.Activate ( Dueler dueler)
inline

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

Parameters
dueler

Implements CardRPG.IHangingEffect.

◆ Deactivate()

void CardRPG.OTEffect.Deactivate ( Dueler dueler)
inline

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

Parameters
dueler

Implements CardRPG.IHangingEffect.

◆ ResolveOTEffects()

IEnumerator CardRPG.OTEffect.ResolveOTEffects ( int rounds,
Dueler target )
inline

Logic to resolve the over time effects each round.

Parameters
rounds
target
Returns

Property Documentation

◆ Description

string CardRPG.OTEffect.Description
getset

The description of the effect.

Implements CardRPG.IHangingEffect.

◆ Element

int CardRPG.OTEffect.Element
getset

The element of the effect.

Implements CardRPG.IHangingEffect.

◆ Modifier

int CardRPG.OTEffect.Modifier
getset

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

Implements CardRPG.IHangingEffect.

◆ Name

string CardRPG.OTEffect.Name
getset

The name of the effect.

Implements CardRPG.IHangingEffect.

◆ Sprite

Sprite CardRPG.OTEffect.Sprite
get

The sprite representing the effect.

Implements CardRPG.IHangingEffect.


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