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

A ward that modifies the element of a next incoming damage. More...

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

Public Member Functions

 Prism (string name, int element, int modifier)
 
override void Activate (Dueler dueler)
 The activate method is called to apply the effect to the Dueler.
 
override void Deactivate (Dueler dueler)
 The deactivate method is called to remove the effect from the Dueler.
 
override float CalculateModifier (float value)
 Calculate the modifier based on the given value.
 
- Public Member Functions inherited from CardRPG.Ward
 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

override Sprite Sprite [get]
 The sprite representing the effect.
 
- Properties inherited from CardRPG.Ward
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 ward that modifies the element of a next incoming damage.

Member Function Documentation

◆ Activate()

override void CardRPG.Prism.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.Prism.CalculateModifier ( float value)
inline

Calculate the modifier based on the given value.

Parameters
value
Returns

Implements CardRPG.ITriggerEffect.

◆ Deactivate()

override void CardRPG.Prism.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.Prism.Sprite
get

The sprite representing the effect.

Implements CardRPG.IHangingEffect.


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