예제 #1
0
        public Iterator GetIterator()
        {
            ItemsMaker maker = new ItemsMaker();

            Items[0] = maker.GetFireBomb();
            Items[1] = maker.GetFireShield();

            Items[2] = maker.GetIceBomb();
            Items[3] = maker.GetIceShield();
            return(new ItemIterator());
        }
예제 #2
0
        public Iterator GetIterator()
        {
            ItemsMaker maker = new ItemsMaker();

            Items.Add(maker.GetFireBomb());
            Items.Add(maker.GetFireShield());

            Items.Add(maker.GetIceBomb());
            Items.Add(maker.GetIceShield());
            return(new ItemIterator());
        }