Skip to content

Fightabale Object

Max Schmitt edited this page Jan 21, 2020 · 1 revision

func is_dead() -> bool func is_alive() -> bool Checks if Object is Dead or Alive

func add_attack(attack : Attack) Adds attack to fightableobject. use this func in _ready() or _enter_tree() with enums.

func attack(attack_id : int, enemy : FightableObject) attacks an enemy

func heal(heal : int) heals itself with lifepoints

func get_attack(id : int) gets an attack by id

Clone this wiki locally