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

Logic for modifying a card's attributes by applying a specified card modifier. More...

Inheritance diagram for CardRPG.ModifyCardLogic:
CardRPG.EnchantLogic

Public Member Functions

override Card EnchantCard (Card card)
 
- Public Member Functions inherited from CardRPG.EnchantLogic
Card EnchantCard (Card card)
 Applies the enchantment logic to the specified card and returns the modified card.
 

Properties

override Type CardLogicTarget [get]
 
- Properties inherited from CardRPG.EnchantLogic
Card Card [get, set]
 
Type CardLogicTarget [get]
 Gets the type of the card logic that this instance targets.
 

Detailed Description

Logic for modifying a card's attributes by applying a specified card modifier.

This class is designed to work with cards that implement the DamageLogic type. It clones the input card, checks for existing modifiers of the same type, and either updates the modifier's attributes or adds a new modifier to the card.


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