예제 #1
0
 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;
 }
예제 #2
0
 //Metodo que elimina capa de invisibilidad al elfo.
 public void RemoveInvisibilityCloak(InvisibilityCloak invisibilityCloak)
 {
     this.InvisibilityCloak = null;
 }
예제 #3
0
 //Metodo que cambia la capa de invisibilidad al elfo.
 public void AttachInvisibilityCloak(InvisibilityCloak invisibilityCloak)
 {
     this.InvisibilityCloak = invisibilityCloak;
 }