Méthode | Description | |
---|---|---|
Attack ( |
Performs an attack on a character. Will also give an amount of feedback. Also reduces the health of the defender if the attack hits
|
|
CalculateHitPercentage ( |
Calculates the chance of hitting a particular body part.
|
|
GetRandomAttackLocation ( |
Gets a random attack location to attack. Will prefer attack locations which have more chance of hitting, and will never return any locations which have a 0 chance to hit. If this is not possible, return null
|
|
KillCharacter ( |
Kills the current character
|
|
PerformSpecialAttack ( |
Attack a particular target using this special attack
|
Méthode | Description | |
---|---|---|
CombatManager ( ) : System | ||
GetStanceEffect ( int &attack, int &defence, ActorStance stance ) : void |
Gets the effect the stance has on attack and defence
|
|
LogAction ( |
Returns a particular logged action.
|
public static Attack ( |
||
attacker | ||
defender | ||
location | AttackLocation | |
special | Special attack modifications to make. THIS DOES NOT CONSIDER TARGETS OR ATTACKS | |
Résultat | ActionFeedback[] |
public static CalculateHitPercentage ( |
||
attacker | ||
defender | ||
location | AttackLocation | |
Résultat | int |
public static GetRandomAttackLocation ( |
||
attacker | ||
defender | ||
Résultat | AttackLocation? |
public static KillCharacter ( |
||
actor | ||
Résultat | void |
public static PerformSpecialAttack ( |
||
attacker | ||
target | ||
attack | ||
Résultat | ActionFeedback[] |