Search Results for

    Show / Hide Table of Contents

    Class FarmPlot

    A plot of land.

    Inheritance
    object
    HouseholdAsset
    FarmPlot
    Inherited Members
    HouseholdAsset.Owner
    HouseholdAsset.SetOwner(Household)
    Namespace: Backend
    Assembly: cs.temp.dll.dll
    Syntax
    public class FarmPlot : HouseholdAsset

    Constructors

    FarmPlot(SeedType, FertilizerType)

    Create a new farm plot with seedType seed type and fertilizerType fertilizer type.

    Declaration
    public FarmPlot(SeedType seedType, FertilizerType fertilizerType)
    Parameters
    Type Name Description
    SeedType seedType

    Seed type.

    FertilizerType fertilizerType

    Fertilizer type.

    Properties

    FertilizerType

    What type of fertilizer is currently on the land.

    Declaration
    public FertilizerType FertilizerType { get; set; }
    Property Value
    Type Description
    FertilizerType

    Irrigated

    Whether the plot is irrigated.

    Declaration
    public bool Irrigated { get; set; }
    Property Value
    Type Description
    bool

    SeedType

    What type of seed is planted currently.

    Declaration
    public SeedType SeedType { get; set; }
    Property Value
    Type Description
    SeedType

    YieldMultiplier

    A value that the yield of this plot is multiplied by.

    Declaration
    public float YieldMultiplier { get; set; }
    Property Value
    Type Description
    float

    Methods

    ClearPlot()

    Sets seed type to regular and fertilizer to none.

    Declaration
    public void ClearPlot()

    GetWeatherEffect()

    Returns game's weather index or 1 (the best weather) if irrigated.

    Declaration
    public int GetWeatherEffect()
    Returns
    Type Description
    int

    Game's weather index or 1 (the best weather) if irrigated.

    GetYield()

    Returns the yield of this plot multiplied by the yield multiplier.

    Declaration
    public int GetYield()
    Returns
    Type Description
    int

    Plot's wheat yield.

    In This Article
    Back to top Green Revolution Code Documentation