Search Results for

    Show / Hide Table of Contents

    Class Household

    A household/player in the game.

    Inheritance
    object
    Household
    Namespace: Backend
    Assembly: cs.temp.dll.dll
    Syntax
    public class Household

    Constructors

    Household(int, string, int, int, int)

    Create a household with the specified parameters.

    Declaration
    public Household(int startMoney, string familyName, int numChildren, int numAdults, int numPlots)
    Parameters
    Type Name Description
    int startMoney

    Starting money.

    string familyName

    Family name. Every family member has this as their last name.

    int numChildren

    Number of children in family.

    int numAdults

    Number of adults in family.

    int numPlots

    Number of plots in farmland.

    Properties

    Family

    This household's family.

    Declaration
    public Family Family { get; }
    Property Value
    Type Description
    Family

    Inventory

    This household's inventory of items.

    Declaration
    public Inventory Inventory { get; }
    Property Value
    Type Description
    Inventory

    Land

    This household's land.

    Declaration
    public Farmland Land { get; }
    Property Value
    Type Description
    Farmland

    Money

    This household's money.

    Declaration
    public int Money { get; set; }
    Property Value
    Type Description
    int

    Wheat

    This household's wheat.

    Declaration
    public int Wheat { get; set; }
    Property Value
    Type Description
    int

    Methods

    HireLabour()

    Creates an adult named "Hired Worker", to be removed from the household after a year.

    Declaration
    public void HireLabour()

    RemoveLabour()

    Remove all hired labour from this family.

    Declaration
    public void RemoveLabour()
    In This Article
    Back to top Green Revolution Code Documentation