public void grow() { if (seed != null) { setPlant(items.getPlant(seed.getCorPlant())); } else { if (plant != null) { if (plant.getCurStage() < plant.getStages()) { plant.incCurStage(1); } else { setFruit(items.getFruit(plant.getCorFruit())); } } } }
public Items.plants clonePlant(Items.plants p) { Items.plants ret = new Items.plants(p.getID(), p.getName(), p.getCorSeed(), p.getCorFruit(), p.getStages(), p.getGrowTime()); return(ret); }