예제 #1
0
        public Brand copyBrand(Brand brand)
        {
            Brand newBrand = new TubeBrand(brand.getNumber());

            newBrand.WhoPush  = brand.WhoPush;
            newBrand.IsCanSee = brand.IsCanSee;
            return(newBrand);
        }
예제 #2
0
        /// <summary>
        /// �ƧǵP���غc�l
        /// </summary>
        /// <param name="player">���a</param>
        public PlayerSort(BrandPlayer player)
        {
            this.inputPlayer = player;
            for (int i = 0; i < tempPlayers.Length; i++)
                tempPlayers[i] = new BrandPlayer();
            teamBrands = new BrandPlayer();
            BrandClass[0] = new FlowerBrand(0);
            BrandClass[1] = new TenThousandBrand(0);
            BrandClass[2] = new RopeBrand(0);
            BrandClass[3] = new TubeBrand(0);
            BrandClass[4] = new WordBrand(0);

            getBrands( inputPlayer.creatIterator() );
            sortPlayer();
            sortTeam();
            compose();
        }