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

logic for swapping effects between duelers. More...

Inheritance diagram for CardRPG.SwapLogic:
CardRPG.CardLogic

Public Member Functions

override IEnumerator MainLogic (Dueler caster, Dueler target, Dueler originalTarget, float value)
 
override bool AILogic (Dueler caster, Dueler target)
 
override Dueler AISelect (Dueler caster, List< Dueler > targets)
 
- Public Member Functions inherited from CardRPG.CardLogic
void AddValue (int n)
 
int GetElement (Dueler caster, Dueler enemy)
 Gets the element to use for this logic, based on the matcher type.
 
bool SatisfyCondition (Dueler caster, Dueler target)
 Checks if the card condition is satisfied for the given caster and target.
 
int RepeatCount (Dueler caster, Dueler target)
 Gets the number of times to repeat the logic for the given caster and target.
 
List< DuelerGetTargets (List< Dueler > targets, List< Dueler > allTargets)
 Determines the list of targets for this logic based on the allEnemy flag.
 
IEnumerator MainLogic (Dueler caster, Dueler target, Dueler originalTarget, float value)
 The main logic to apply to a single target.
 
bool AILogic (Dueler caster, Dueler target)
 AI logic for determining if this logic should be used on the given target.
 
Dueler AISelect (Dueler caster, List< Dueler > targets)
 AI logic for selecting the best target for this logic.
 

Additional Inherited Members

- Properties inherited from CardRPG.CardLogic
int MinValue [get]
 Minimum value for the effect (e.g., damage or heal).
 
int MaxValue [get]
 Maximum value for the effect (e.g., damage or heal).
 
bool PerPip [get]
 If true, effect value is multiplied by the number of pips.
 
bool AllEnemy [get]
 If true, applies to all enemies.
 
bool Self [get]
 If true, applies effect to self.
 
CardCondition CardCondition [get]
 The condition that must be satisfied for this logic to apply.
 
RepeatCondition RepeatCondition [get]
 The repeat condition for this logic.
 
virtual bool CanCrit [get]
 
Card Card [get, set]
 The card this logic belongs to.
 
virtual int DamageAmount [get]
 

Detailed Description

logic for swapping effects between duelers.


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