-
Notifications
You must be signed in to change notification settings - Fork 4
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
© 2019-2020 Klengan the Game - Ein Community-Spiel.
Von Stefans, für Stefans (aber besonders für den Alpha-Stefan)