ORK Framework
3.17.1
API Documentation
|
Public Member Functions | |
CombatantAbilities (Combatant owner) | |
void | InitAttacks () |
void | Clear () |
void | ResetUseCounts (UseCountResetType resetType) |
Resets the use counts of all available abilities. Only abilities that use the 'Use Count' feature will be reset. More... | |
void | ChangeUseCounts (int change, FloatOperator floatOperator) |
Changes the use counts of all available abilities. Only abilities that use the 'Use Count' feature will be changed. More... | |
void | GroupAbilitiesChanged (Group group) |
bool | CheckDataChanged () |
void | UpdateLists () |
void | MarkAbilitiesChanged () |
void | CheckAbilityChanges () |
virtual void | UpdateAbilityLists () |
List< AbilityShortcut > | GetAll () |
void | SetAbilities (List< AbilityShortcut > list) |
void | Add (AbilityShortcut ability) |
void | AddPreview (AbilityShortcut ability) |
void | Remove (string guid) |
void | Remove (AbilityShortcut ability) |
void | RemovePreview (AbilityShortcut ability) |
void | ResetEquipmentAttacks () |
AbilityShortcut | GetCurrentBaseAttack () |
Gets the current base attack ability. More... | |
AbilityShortcut | GetBaseAttack (int index) |
Gets the base attack ability. More... | |
void | GetBaseAttacks (ref List< AbilityShortcut > list) |
Adds all base attacks to the list. More... | |
void | NextBaseAttack () |
void | ResetBaseAttack () |
bool | InAttackRange (Combatant target) |
void | TickBaseAttackTimeout (float battleTime) |
AbilityShortcut | GetCounterAttack () |
Gets the counter attack ability. More... | |
bool | UseCounter (Combatant target) |
void | GetStatusChanges (ref StatusPreviewInformation info) |
void | SetStartEffects () |
Applies the auto status effects of passive abilities. More... | |
void | RemoveStartEffects () |
Removes the auto status effects of passive abilities. More... | |
bool | CanApplyEffect (StatusEffectSetting effect) |
Checks the passive abilities if a status effect can be applied. More... | |
bool | CanRemoveEffect (StatusEffectSetting effect) |
Checks the passive abilities if a status effect can be removed. More... | |
void | UseAttackEffects (Combatant target, bool isBlocked, bool isCritical) |
void | UseDefenceEffects (Combatant target, bool isBlocked, bool isCritical) |
bool | IsAttackChangesBlocked () |
bool | IsAbilityChangesBlocked (AbilityShortcut ability) |
bool | IsItemChangesBlocked (ItemShortcut item) |
bool | Forget (Ability ability, bool showNotification, bool showConsole) |
Forgets an ability. More... | |
bool | Learn (Ability ability, int level, bool showNotification, bool showConsole) |
Learns an ability. More... | |
bool | Learn (AbilityShortcut ability, bool showNotification, bool showConsole) |
Learns an ability. More... | |
virtual void | ShowLearnNotifications (AbilityShortcut ability, bool showNotification, bool showConsole) |
AbilityShortcut | GetUseable (Ability ability) |
Gets a useable ability (not passive), searches in base attacks, counter attack and abilities. More... | |
List< AbilityShortcut > | GetAbilities (UseableIn useIn, IncludeCheckType addTemporary, bool addPassiveToggleable) |
Gets a list of abilities useable in a specified mode. More... | |
AbilityShortcut | GetLearned (Ability ability) |
Gets a learned ability. More... | |
AbilityShortcut | Get (string guid) |
Gets an ability by its GUID. More... | |
AbilityShortcut | Get (Ability ability) |
Gets a known ability. More... | |
AbilityShortcut | Get (Ability ability, int level) |
Gets a known ability and tries to set it's use level (only non-passive abilities). More... | |
AbilityShortcut | Get (AbilityShortcut shortcut) |
Gets an ability matching a defined ability. More... | |
List< AbilityType > | GetTypes (bool addDevelopmentTypes, bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary) |
List< AbilityType > | GetTypes (AbilityType parentType, bool addDevelopmentTypes, bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary) |
Gets a list of all available ability types. More... | |
List< AbilityType > | GetTypes (UseableIn useIn, IncludeCheckType addTemporary, bool addPassiveToggleable, AbilityType parentType, bool addDevelopmentTypes) |
List< AbilityShortcut > | GetByType (bool checkParent, AbilityType type, bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary) |
Gets a list of abilities by ability type. More... | |
void | GetByType (bool checkParent, AbilityType type, bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary, ref List< AbilityShortcut > list) |
void | GetByType (bool checkParent, AbilityType type, bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary, ref List< IShortcut > list) |
List< AbilityShortcut > | GetByType (AbilityType type, UseableIn useIn, IncludeCheckType addTemporary, bool addPassiveToggleable, bool checkParent) |
Gets a list of abilities by ability type useable in a specified mode. More... | |
bool | HasTypes (bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary) |
bool | HasType (AbilityType type, UseableIn useIn, IncludeCheckType addTemporary, bool addPassiveToggleable) |
bool | HasType (AbilityType type, UseableIn useIn, IncludeCheckType addTemporary, bool addPassiveToggleable, CheckCombatantAbilityShortcut checkAbility) |
bool | CanGetUseExperience (AbilityShortcut ability) |
Determines whether the specified ability can receive experience. The ability has to be a base attack, counter attack or a learned ability to receive experience. More... | |
bool | IsLearned (AbilityShortcut ability) |
Determines whether the specified ability has been learned. More... | |
bool | HasLearned (Ability ability, int level) |
Determines whether the specified ability has been learned. More... | |
bool | Has (AbilityShortcut shortcut) |
Determines whether the specified ability is available. More... | |
bool | Has (Ability ability, int level) |
Determines whether the specified ability is available. More... | |
bool | HasNewTypes (bool checkParent, List< AbilityType > types, bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary) |
bool | HasType (bool checkParent, AbilityType type, bool addAttacks, bool addCounters, bool addClass, bool addActive, bool addPassive, IncludeCheckType addTemporary, bool checkNewContent) |
Determines whether the specified ability type is available. More... | |
void | AddTemporaryAbility (AbilityShortcut ability, RemoveTemporaryAbility remove) |
Adds a temporary ability More... | |
void | RemoveTemporaryAbility (Ability ability) |
Removes a temporary ability. More... | |
void | RemoveTemporaryAbility (AbilityShortcut ability) |
Removes a temporary ability. More... | |
void | ClearTemporaryAbilities () |
Removes all temporary abilities. More... | |
bool | HasTemporary (Ability ability, int level) |
Determines wheter the specified temporary ability is available. More... | |
void | AddEquipmentAbility (EquipShortcut equipment, EquipmentAbility equipAbility, int index) |
Adds an ability that is attached to an equipment. More... | |
void | RemoveEquipmentAbility (EquipShortcut equipment, EquipmentAbility equipAbility) |
Removes an ability that is attached an equipment. More... | |
void | ResetEquipmentAbilities () |
Resets all equipment abilities. All abilities coming from equipments will be removed and the current equipment will be checked for abilities. More... | |
virtual void | UpdateSingleClassAbilities () |
Checks if the current class of the combatant has a class ability and adds it, if it's not yet added to the combatant. More... | |
virtual void | AddClassAbility (AbilityShortcut ability) |
virtual void | RemoveClassAbility (AbilityShortcut ability) |
DataObject | SaveGame () |
void | LoadGame (DataObject data) |
Protected Member Functions | |
void | AddToList (AbilityShortcut ability) |
void | RemoveFromList (AbilityShortcut ability) |
void | AutoAddShortcut (AbilityShortcut ability) |
void | CheckNewAbilityType (List< AbilityShortcut > list) |
void | CheckAddNew (AbilityShortcut ability) |
void | CreateAbilities (List< AbilityShortcut > list, UseableIn useIn) |
AbilityShortcut | GetBaseAttack (ref int index) |
List< AbilityShortcut > | GetAbilities (List< AbilityShortcut > abilities, IncludeCheckType addTemporary, bool addPassiveToggleable) |
bool | CheckType (bool checkParent, AbilityType type, AbilityShortcut ability, IncludeCheckType addTemporary, bool checkNewContent) |
EquipAbilityShortcut | GetEquipmentAbility (EquipShortcut equipment, EquipmentAbility equipAbility) |
Protected Attributes | |
Combatant | owner |
GUIDCollection< AbilityShortcut > | abilityList = new GUIDCollection<AbilityShortcut>() |
AbilityShortcut [] | attack |
AbilityShortcut | counter |
List< AbilityShortcut > | equipAttack = new List<AbilityShortcut>() |
AbilityShortcut | equipCounter |
List< AbilityShortcut > | passive = new List<AbilityShortcut>() |
List< AbilityShortcut > | both = new List<AbilityShortcut>() |
List< AbilityShortcut > | field = new List<AbilityShortcut>() |
List< AbilityShortcut > | battle = new List<AbilityShortcut>() |
bool | abilitiesChanged = false |
bool | dataChanged = false |
List< Ability > | addedAbilities = new List<Ability>() |
List< AbilityType > | newAbilityTypes = new List<AbilityType>() |
Ability | lastAbility |
int | attackIndex = 0 |
float | attackTimeout = -10 |
Properties | |
bool | DataChanged [get, set] |
Ability | LastAbility [get, set] |
int | AttackIndex [get, set] |
bool | HasAbilities [get] |
Is true if any active or passive abilities are available. More... | |
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.AddEquipmentAbility | ( | EquipShortcut | equipment, |
EquipmentAbility | equipAbility, | ||
int | index | ||
) |
Adds an ability that is attached to an equipment.
equipAbility | The equipment ability. |
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.AddTemporaryAbility | ( | AbilityShortcut | ability, |
RemoveTemporaryAbility | remove | ||
) |
Adds a temporary ability
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.CanApplyEffect | ( | StatusEffectSetting | effect | ) |
Checks the passive abilities if a status effect can be applied.
true
if the status effect can be applied; otherwise, false
. effect | The status effect. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.CanGetUseExperience | ( | AbilityShortcut | ability | ) |
Determines whether the specified ability can receive experience. The ability has to be a base attack, counter attack or a learned ability to receive experience.
true
if the ability can receive experience; otherwise, false
. ability | The AbilityShortcut representing the ability. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.CanRemoveEffect | ( | StatusEffectSetting | effect | ) |
Checks the passive abilities if a status effect can be removed.
true
if the status effect can be removed; otherwise, false
. effect | The status effect |
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.ChangeUseCounts | ( | int | change, |
FloatOperator | floatOperator | ||
) |
Changes the use counts of all available abilities. Only abilities that use the 'Use Count' feature will be changed.
change | The value by which the use count will be changed. |
floatOperator |
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.ClearTemporaryAbilities | ( | ) |
Removes all temporary abilities.
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Forget | ( | Ability | ability, |
bool | showNotification, | ||
bool | showConsole | ||
) |
Forgets an ability.
ability | The ability. |
showNotification | true if a notification should be displayed. |
showConsole | true if a console line should be added. |
true
if the ability was forgotten.AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Get | ( | string | guid | ) |
Gets an ability by its GUID.
guid | The GUID of the ability instance. |
AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Get | ( | Ability | ability | ) |
Gets a known ability.
null
. ability | The ability. |
AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Get | ( | Ability | ability, |
int | level | ||
) |
Gets a known ability and tries to set it's use level (only non-passive abilities).
null
. ability | The ID (index) of the ability. |
level | The level that should be used. |
AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Get | ( | AbilityShortcut | shortcut | ) |
Gets an ability matching a defined ability.
shortcut | The AbilityShortcut to look for. |
List<AbilityShortcut> GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetAbilities | ( | UseableIn | useIn, |
IncludeCheckType | addTemporary, | ||
bool | addPassiveToggleable | ||
) |
Gets a list of abilities useable in a specified mode.
useIn | Either useable in Field , Battle , Both or None (passive abilities). |
AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetBaseAttack | ( | int | index | ) |
Gets the base attack ability.
index | The index of the base attack. Will be reset to 0 if outside of available attacks. |
AbilityShortcut
.void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetBaseAttacks | ( | ref List< AbilityShortcut > | list | ) |
Adds all base attacks to the list.
list | The list the base attacks will be added to. |
List<AbilityShortcut> GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetByType | ( | bool | checkParent, |
AbilityType | type, | ||
bool | addAttacks, | ||
bool | addCounters, | ||
bool | addClass, | ||
bool | addActive, | ||
bool | addPassive, | ||
IncludeCheckType | addTemporary | ||
) |
Gets a list of abilities by ability type.
type | The ID (index) of the ability type to look for. |
addAttacks | true to add base attack abilities. |
addCounters | true to add counter attack abilities. |
addClass | true to add class abilities. |
addActive | true to add active abilities. |
addPassive | true to add passive abilities. |
List<AbilityShortcut> GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetByType | ( | AbilityType | type, |
UseableIn | useIn, | ||
IncludeCheckType | addTemporary, | ||
bool | addPassiveToggleable, | ||
bool | checkParent | ||
) |
Gets a list of abilities by ability type useable in a specified mode.
type | The ID (index) of the ability type. |
useIn | Either useable in Field , Battle , Both or None (passive abilities). |
AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetCounterAttack | ( | ) |
Gets the counter attack ability.
AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetCurrentBaseAttack | ( | ) |
Gets the current base attack ability.
AbilityShortcut
.AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetLearned | ( | Ability | ability | ) |
Gets a learned ability.
null
. ability | The ability. |
List<AbilityType> GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetTypes | ( | AbilityType | parentType, |
bool | addDevelopmentTypes, | ||
bool | addAttacks, | ||
bool | addCounters, | ||
bool | addClass, | ||
bool | addActive, | ||
bool | addPassive, | ||
IncludeCheckType | addTemporary | ||
) |
Gets a list of all available ability types.
AbilityShortcut GamingIsLove.ORKFramework.Combatants.CombatantAbilities.GetUseable | ( | Ability | ability | ) |
Gets a useable ability (not passive), searches in base attacks, counter attack and abilities.
ability | The ability. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Has | ( | AbilityShortcut | shortcut | ) |
Determines whether the specified ability is available.
true
if the ability is available; otherwise, false
. shortcut | The AbilityShortcut representing the ability. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Has | ( | Ability | ability, |
int | level | ||
) |
Determines whether the specified ability is available.
true
if the ability is available; otherwise, false
. ability | The ability. |
level | The minimum level that has to be learned. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.HasLearned | ( | Ability | ability, |
int | level | ||
) |
Determines whether the specified ability has been learned.
true
if the ability has been learned; otherwise, false
. ability | The ability. |
level | The minimum level that has to be learned. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.HasTemporary | ( | Ability | ability, |
int | level | ||
) |
Determines wheter the specified temporary ability is available.
ability | The ability. |
level | The minimum level of the ability. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.HasType | ( | bool | checkParent, |
AbilityType | type, | ||
bool | addAttacks, | ||
bool | addCounters, | ||
bool | addClass, | ||
bool | addActive, | ||
bool | addPassive, | ||
IncludeCheckType | addTemporary, | ||
bool | checkNewContent | ||
) |
Determines whether the specified ability type is available.
true
if the ability type is available; otherwise, false
. type | The ID (index) of the ability type. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.IsLearned | ( | AbilityShortcut | ability | ) |
Determines whether the specified ability has been learned.
true
if the ability has been learned; otherwise, false
. ability | The AbilityShortcut representing the ability. |
bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Learn | ( | Ability | ability, |
int | level, | ||
bool | showNotification, | ||
bool | showConsole | ||
) |
Learns an ability.
ability | The ID/index of the ability. |
level | The level of the ability. |
showNotification | true if a notification should be displayed. |
showConsole | true if a console line should be added. |
true
if the ability was learned.bool GamingIsLove.ORKFramework.Combatants.CombatantAbilities.Learn | ( | AbilityShortcut | ability, |
bool | showNotification, | ||
bool | showConsole | ||
) |
Learns an ability.
ability | The ability that will be learned. |
showNotification | true if a notification should be displayed. |
showConsole | true if a console line should be added. |
true
if the ability was learned.void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.RemoveEquipmentAbility | ( | EquipShortcut | equipment, |
EquipmentAbility | equipAbility | ||
) |
Removes an ability that is attached an equipment.
equipAbility | The equipment ability. |
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.RemoveStartEffects | ( | ) |
Removes the auto status effects of passive abilities.
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.RemoveTemporaryAbility | ( | Ability | ability | ) |
Removes a temporary ability.
ability | The ability that will be removed. |
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.RemoveTemporaryAbility | ( | AbilityShortcut | ability | ) |
Removes a temporary ability.
ability | The ability that will be removed. |
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.ResetEquipmentAbilities | ( | ) |
Resets all equipment abilities. All abilities coming from equipments will be removed and the current equipment will be checked for abilities.
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.ResetUseCounts | ( | UseCountResetType | resetType | ) |
Resets the use counts of all available abilities. Only abilities that use the 'Use Count' feature will be reset.
void GamingIsLove.ORKFramework.Combatants.CombatantAbilities.SetStartEffects | ( | ) |
Applies the auto status effects of passive abilities.
|
virtual |
Checks if the current class of the combatant has a class ability and adds it, if it's not yet added to the combatant.
|
get |
Is true
if any active or passive abilities are available.