Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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 | |
Результат | ActionFeedback[] |
public static CalculateHitPercentage ( |
||
attacker | ||
defender | ||
location | AttackLocation | |
Результат | int |
public static GetRandomAttackLocation ( |
||
attacker | ||
defender | ||
Результат | AttackLocation? |
public static KillCharacter ( |
||
actor | ||
Результат | void |
public static PerformSpecialAttack ( |
||
attacker | ||
target | ||
attack | ||
Результат | ActionFeedback[] |