Class AIAbilityIntentExtensions
Helpers for reasoning about an ability's intent.
public static class AIAbilityIntentExtensions
- Inheritance
-
AIAbilityIntentExtensions
- Inherited Members
Methods
HasAny(AIAbilityIntent, AIAbilityIntent)
True when any of the given flags are present.
public static bool HasAny(this AIAbilityIntent intent, AIAbilityIntent flags)
Parameters
intentAIAbilityIntentThe intent to test.
flagsAIAbilityIntentFlags to look for.
Returns
- bool
True if at least one flag is set.
IsOffensive(AIAbilityIntent)
True when this ability is something to point at an enemy.
public static bool IsOffensive(this AIAbilityIntent intent)
Parameters
intentAIAbilityIntentThe intent to test.
Returns
- bool
True if the ability is offensive.
IsSupportive(AIAbilityIntent)
True when this ability is something to point at a friend.
public static bool IsSupportive(this AIAbilityIntent intent)
Parameters
intentAIAbilityIntentThe intent to test.
Returns
- bool
True if the ability is supportive.
Remarks
Dispel is deliberately absent: a dispel that strips buffs is offensive and one that strips debuffs is supportive, and which it is cannot be read from the flag alone. AIAbilityClassifier resolves that at classification time from the dispel action's own configuration and sets the appropriate flag alongside.