示例#1
0
 void initInventory()
 {
     bag.addToInventory(list.getSeed(2), 5);
     bag.addToInventory(list.getSeed(3), 6);
     bag.addToInventory(list.getSeed(4), 7);
     bag.addToInventory(list.getPlant(5), 4);
     bag.addToInventory(list.getFruit(3), 2);
     bag.addToInventory(list.getTool(1));
     bag.addToInventory(list.getTool(2));
     bag.addToInventory(list.getTool(3));
 }
示例#2
0
 void initPlant(int ID)
 {
     setSeed(items.getSeed(ID));
     setPlant(items.getPlant(ID));
 }