예제 #1
0
 public void RecogerArma(Arma arma)
 {
     if (this.arma != null)
     {
         Console.WriteLine("EL SOLDADO TIENE UN ARMA ENCIMA, PRIMERO DEJE EL ARMA PARA AGARRAR OTRA");
     }
     else
     {
         Console.WriteLine("HA RECOGIDO UN ARMA NUEVA");
     }
 }
예제 #2
0
 public void DejarArma()
 {
     if (this.arma != null)
     {
         arma = null;
         Console.WriteLine("ha dejado el arma que poseia");
     }
     else
     {
         Console.WriteLine("parece que el soldado no tiene un arma consigo");
     }
 }