示例#1
0
    public static int BreedFlower(int motherIndex, int fatherIndex)
    {
        Flower mother      = GetFlower(motherIndex);
        Flower father      = GetFlower(fatherIndex);
        Flower childFlower = mother.Breed(father);

        AddNewFlower(childFlower);
        return(Flowers.Count);
    }
示例#2
0
    public static Flower BreedFlower(int motherIndex, int fatherIndex)
    {
        Flower mother      = Inventory.GetFlower(motherIndex);
        Flower father      = Inventory.GetFlower(fatherIndex);
        Flower childFlower = mother.Breed(father);

        FlowerList.AddLast(childFlower);
        SaveData.Save();
        //Remove Flower

        return(childFlower);
    }