public Elf(string name, Bow bow, InvisibilityCloak invisibilityCloak, string role) { this.Name = name; this.Damage = 20; this.Health = initialHealth; this.Bow = bow; this.InvisibilityCloak = invisibilityCloak; this.Role = role; }
//Metodo que elimina capa de invisibilidad al elfo. public void RemoveInvisibilityCloak(InvisibilityCloak invisibilityCloak) { this.InvisibilityCloak = null; }
//Metodo que cambia la capa de invisibilidad al elfo. public void AttachInvisibilityCloak(InvisibilityCloak invisibilityCloak) { this.InvisibilityCloak = invisibilityCloak; }