Class Adult
Represents an adult worker in a family.
Inherited Members
Namespace: Backend
Assembly: cs.temp.dll.dll
Syntax
public class Adult : FamilyMember
Constructors
Adult(string, string)
Creates an adult.
Declaration
public Adult(string First, string Last)
Parameters
Type | Name | Description |
---|---|---|
string | First | First name. |
string | Last | Last name. |
Fields
BaseLabourPoints
Base labour points contributed.
Declaration
public const int BaseLabourPoints = 2
Field Value
Type | Description |
---|---|
int |
Consumption
Wheat consumption per year.
Declaration
public const int Consumption = 10
Field Value
Type | Description |
---|---|
int |
Properties
HasOx
Whether the adult has an ox.
Declaration
public bool HasOx { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
AssignOx(bool)
Assign or unassign an ox to this adult.
Declaration
public void AssignOx(bool assigned)
Parameters
Type | Name | Description |
---|---|---|
bool | assigned | Whether to assign or unassign. |
GetLabourPoints()
Calculate how many labour points this adult contributes. Doubled if adult has an ox.
Declaration
public int GetLabourPoints()
Returns
Type | Description |
---|---|
int | Labour points contributed. |