Exemple #1
0
        public static void Main()
        {
            var arsenal  = new Arsenal();
            var weapons  = arsenal.GetWeapons();
            var soldier1 = new Soldado(new Arsenal());
            var soldier2 = new Soldado(new Arsenal());

            soldier1.Attack("soldado2", weapons[0]);
            soldier2.Attack("soldado1", weapons[1]);
        }
Exemple #2
0
 public Soldado(Arsenal arsenal)
 {
     this.arsenal = arsenal;
 }