pyherc.rules.attack.action

Module defining classes related to AttackAction

AttackAction

class pyherc.rules.attack.action.AttackAction(attack_type, to_hit, damage, attacker, target, model)

Action for attacking

execute()

Executes this Attack

ToHit

class pyherc.rules.attack.action.ToHit(attacker, target, random_number_generator=<random.Random object at 0x020DB178>)

Checks done for hitting

is_hit()

Checks if the hit lands @returns: True if hit is successful, False otherwise

Damage

class pyherc.rules.attack.action.Damage(damage)

Damage done in attack

apply_damage(target)

Applies damage to target @param target: Target to damage

Table Of Contents

Previous topic

pyherc.rules.attack

Next topic

pyherc.rules.attack.factories

This Page