Beispiel #1
0
        public BrandsTest()
        {
            BrandPlayer a = new BrandPlayer();

            BrandFactory x = new BrandFactory();

            x.createBrands();
            x.randomBrands();

            //x.PrintRadomTable(); //¦C¥X¶Ã¼Æªí
            a = x.getBrands();

            Iterator ai;

            ai = a.creatIterator(10);
            print(ai);

            ai = a.creatIterator(3);
            a  = removefromplayer(ai, a);

            ai = a.creatIterator(10);
            print(ai);

            //Console.WriteLine();
            //Console.Write("{0},{1}\n", sa.getReadyBrand().getClass(),sa.getReadyBrand().getNumber());

            //chackBrands();
            //chackArrayList();

            x.creatImageArray();
        }
Beispiel #2
0
        void printplayer(BrandPlayer player)
        {
            Console.WriteLine("\n=== Player ===");
            Iterator temp = player.creatIterator();

            print(temp);
        }
Beispiel #3
0
        void printplayer(BrandPlayer player, string val)
        {
            Console.WriteLine("\n=== Player {0}===", val);
            Iterator temp = player.creatIterator();

            print(temp);
        }
Beispiel #4
0
        void print()
        {
            Iterator it;

            it = player.creatIterator();
            printplayer(it);
            Console.WriteLine("{0}{1}-({2})", ans.getNumber(), ans.getClass(), ans.Source);
        }
Beispiel #5
0
        private void addimage_player(BrandPlayer player, location state, RotateFlipType rotate)
        {
            Iterator temp = player.creatIterator();

            addimage_iterator(temp, state, rotate);
            if (InvokeRequired)
            {
                Invoke(new Update_delegate(Update));
            }
            else
            {
                Update();
            }
        }
Beispiel #6
0
        void add_to_player(BrandPlayer player, BrandPlayer add)
        {
            Iterator temp = player.creatIterator();

            add_to_player_iterator(temp, add);
        }