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(); }
void printplayer(BrandPlayer player) { Console.WriteLine("\n=== Player ==="); Iterator temp = player.creatIterator(); print(temp); }
void printplayer(BrandPlayer player, string val) { Console.WriteLine("\n=== Player {0}===", val); Iterator temp = player.creatIterator(); print(temp); }
void print() { Iterator it; it = player.creatIterator(); printplayer(it); Console.WriteLine("{0}{1}-({2})", ans.getNumber(), ans.getClass(), ans.Source); }
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(); } }
void add_to_player(BrandPlayer player, BrandPlayer add) { Iterator temp = player.creatIterator(); add_to_player_iterator(temp, add); }