Ejemplo n.º 1
0
        public static Pickaxe operator +(PickaxesFirstPart pix, Wood wood)
        {
            Pickaxe pickaxe = new Pickaxe();

            return(pickaxe);
        }
Ejemplo n.º 2
0
        public static Pickaxe operator +(PickaxesFirstPart pix, Stone stone)
        {
            Pickaxe pickaxe = new Pickaxe();

            return(pickaxe);
        }
Ejemplo n.º 3
0
        public static Pickaxe operator +(PickaxesFirstPart pix, Iron iron)
        {
            Pickaxe pickaxe = new Pickaxe();

            return(pickaxe);
        }
Ejemplo n.º 4
0
        public void Check()
        {
            if (craftTable[0, 0] == 2 && craftTable[0, 1] == 2 && craftTable[0, 2] == 2)
            {
                if (craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0 && craftTable[2, 0] == 0 &&
                    craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Stone             stone   = new Stone();
                    Stone             stone1  = new Stone();
                    Stone             stone2  = new Stone();
                    PickaxesFirstPart pix     = stone + stone1;
                    Pickaxe           pickaxe = pix + stone2;
                    Stick             stick   = new Stick();
                    Stick             stick1  = new Stick();
                    Handle            handle  = stick + stick1;
                    Console.WriteLine(pickaxe + handle + "(stone)");
                }
            }

            if (craftTable[0, 0] == 1 && craftTable[0, 1] == 1 && craftTable[0, 2] == 1)
            {
                if (craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0 && craftTable[2, 0] == 0 &&
                    craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Wood wood                 = new Wood();
                    Wood wood1                = new Wood();
                    Wood wood2                = new Wood();
                    PickaxesFirstPart pix     = wood * wood1;
                    Pickaxe           pickaxe = pix + wood2;
                    Stick             stick   = new Stick();
                    Stick             stick1  = new Stick();
                    Handle            handle  = stick + stick1;
                    Console.WriteLine(pickaxe + handle + "(wooden)");
                }
            }

            if (craftTable[0, 0] == 3 && craftTable[0, 1] == 3 && craftTable[0, 2] == 3)
            {
                if (craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0 && craftTable[2, 0] == 0 &&
                    craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Iron iron                 = new Iron();
                    Iron iron1                = new Iron();
                    Iron iron2                = new Iron();
                    PickaxesFirstPart pix     = iron + iron1;
                    Pickaxe           pickaxe = pix + iron2;
                    Stick             stick   = new Stick();
                    Stick             stick1  = new Stick();
                    Handle            handle  = stick + stick1;
                    Console.WriteLine(pickaxe + handle + "(iron)");
                }
            }
            if (craftTable[0, 0] == 4 && craftTable[0, 1] == 4 && craftTable[0, 2] == 4)
            {
                if (craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0 && craftTable[2, 0] == 0 &&
                    craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Gold gold                 = new Gold();
                    Gold gold1                = new Gold();
                    Gold gold2                = new Gold();
                    PickaxesFirstPart pix     = gold + gold1;
                    Pickaxe           pickaxe = pix + gold2;
                    Stick             stick   = new Stick();
                    Stick             stick1  = new Stick();
                    Handle            handle  = stick + stick1;
                    Console.WriteLine(pickaxe + handle + "(golden)");
                }
            }

            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 1 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 1 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Wood obj  = new Wood();
                    Wood obj2 = new Wood();

                    Stick stick = new Stick();

                    Sword sword = obj / obj2;
                    Console.WriteLine(sword + stick + "(wooden)");
                }
            }

            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 2 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 2 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Stone obj  = new Stone();
                    Stone obj2 = new Stone();

                    Stick stick = new Stick();

                    Sword sword = obj * obj2;
                    Console.WriteLine(sword + stick + "(stone)");
                }
            }


            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 3 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 3 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Iron obj  = new Iron();
                    Iron obj2 = new Iron();

                    Stick stick = new Stick();

                    Sword sword = obj * obj2;
                    Console.WriteLine(sword + stick + "(iron)");
                }
            }


            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 4 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 4 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Gold obj  = new Gold();
                    Gold obj2 = new Gold();

                    Stick stick = new Stick();

                    Sword sword = obj * obj2;
                    Console.WriteLine(sword + stick + "(golden)");
                }
            }



            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 1 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Wood wood = new Wood();

                    Stick stick  = wood + wood;
                    Stick stick1 = wood + wood;

                    Handle handle = stick + stick1;

                    Shovel shovel = wood % wood;
                    Console.WriteLine(shovel + handle + "wooden");
                }
            }


            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 2 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Stone stone = new Stone();

                    Stick stick  = new Stick();
                    Stick stick1 = new Stick();

                    Handle handle = stick + stick1;

                    Shovel shovel = stone / stone;
                    Console.WriteLine(shovel + handle + "stone");
                }
            }



            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 3 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Iron iron = new Iron();

                    Stick stick  = new Stick();
                    Stick stick1 = new Stick();

                    Handle handle = stick + stick1;

                    Shovel shovel = iron / iron;
                    Console.WriteLine(shovel + handle + "iron");
                }
            }



            if (craftTable[0, 0] == 0 && craftTable[0, 1] == 4 && craftTable[0, 2] == 0 &&
                craftTable[1, 0] == 0 && craftTable[1, 1] == 5 && craftTable[1, 2] == 0)
            {
                if (craftTable[2, 0] == 0 && craftTable[2, 1] == 5 && craftTable[2, 2] == 0)
                {
                    Gold gold = new Gold();

                    Stick stick  = new Stick();
                    Stick stick1 = new Stick();

                    Handle handle = stick + stick1;

                    Shovel shovel = gold / gold;
                    Console.WriteLine(shovel + handle + "golden");
                }
            }
        }