Пример #1
0
        public void PoblarImplementos()
        {
            impBF1 = new Implemento("Balón de futbol", "BF01", "Golty", 10, 1);
            impBF2 = new Implemento("Balón de futbol", "BF02", "AS", 10, 0);
            impBF3 = new Implemento("Balón de futbol", "BF03", "Adidas", 5, 0);

            impBB1 = new Implemento("Balón de voleibol", "BV01", "Golty", 1, 0);
            impBB2 = new Implemento("Balón de voleibol", "BV02", "Molten", 2, 0);

            impPF1 = new Implemento("Frisbee", "PF01", "Miyagi", 5, 0);
            impPF2 = new Implemento("Frisbee", "PF02", "Kyte", 2, 0);
            impPF3 = new Implemento("Frisbee", "PF03", "Tiger", 10, 4);
            impPF4 = new Implemento("Frisbee", "PF04", "Olympic", 2, 0);
        }
Пример #2
0
        public Implemento[] TodosImplementos()
        {
            Implemento[] array = new Implemento[10];

            array[1] = impBF1;
            array[2] = impBF2;
            array[3] = impBF3;

            array[4] = impBB1;
            array[5] = impBB2;

            array[6] = impPF1;
            array[7] = impPF2;
            array[8] = impPF3;
            array[9] = impPF4;

            return(array);
        }