예제 #1
0
파일: room.cs 프로젝트: folshost/Text_Adv
 public void roomItemAdd(item Item)
 {
     roomItems.Add(Item);
     Item.used = true;
     itemNum++;
 }
예제 #2
0
        static public void initItems()
        {
            item robotToy = new item("toy robot", 3);
            

            item chinaCabinet = new item("China cabinet", 0);
            chinaCabinet.nestItem = robotToy;
            itemList.Add(chinaCabinet);
                           
            item dinoTopia = new item("dinosaur topiary", 3);
            itemList.Add(dinoTopia);

            item  miniPew = new item("mini pew", 3);
            itemList.Add(miniPew);

            item flowerbed = new item("flowerbed", 3);
            itemList.Add(flowerbed);

            item diningTable = new item("dining room table", 3);
            itemList.Add(diningTable);

            item chandelier = new item("crystal chandelier", 1);
            itemList.Add(chandelier);

            item billiardTable = new item("billiard table", 3);
            itemList.Add(billiardTable);

            item pulpit = new item("pulpit", 3);
            itemList.Add(pulpit);

            item plants = new item("plants", 3);
            itemList.Add(plants);

            item flowers = new item("flowers", 3);
            itemList.Add(flowers);

            item bench = new item("bench", 3);
            itemList.Add(bench);

            item mazeMap = new item("map for the maze",3);


            item fountainCherub = new item("fountain cherub tipping a vase", 3);
            itemList.Add(fountainCherub);

            item knife = new item("butcher knife", 2);
            itemList.Add(knife);

            item drainPlug = new item("drain plug", 3);
            itemList.Add(drainPlug);

            item bedpostKnob = new item("bedpost knob", 0);
            itemList.Add(bedpostKnob);

            item lamp = new item("bedside lamp", 3);
            itemList.Add(lamp);

            item towel = new item("bath towel", 0);
            itemList.Add(towel);

            item trashBag = new item("roll of trashbags", 0);
            trashBag.nestItem = mazeMap;
            itemList.Add(trashBag);

            item trapDoor = new item("trap door", 2);
            itemList.Add(trapDoor);

            item bible = new item("NIV Bible", 0);
            itemList.Add(bible);


            
                
            
        }