Show / Hide Table of Contents

Class Plant

Inheritance
System.Object
Tickable
Organism
Plant
Tree
Implements
ITickable
System.IComparable
INetTrafficCategory
Inherited Members
Organism.BornTime
Organism.WorldHomePos
Organism.YieldPercent
Organism.ClientBasedGrowthPercent
Organism.Dead
Organism.DeadType
Organism.Position
Organism.Alive
Tickable.CompareTo(Object)
Tickable.IsReady()
Tickable.NextTick
Tickable.QueueHandle
Namespace: Eco.Simulation.Agents
Assembly: Eco.Simulation.dll
Syntax
public abstract class Plant : Organism, ITickable, IComparable, INetTrafficCategory

Constructors

Plant()

Declaration
protected Plant()

Plant(PlantSpecies, WorldPosition3i, PlantPack)

Declaration
public Plant(PlantSpecies species, WorldPosition3i position, PlantPack plantPack)
Parameters
Type Name Description
PlantSpecies species
WorldPosition3i position
PlantPack plantPack

Fields

NextSeedTime

Declaration
public double NextSeedTime
Field Value
Type Description
System.Double

TimeTillMatureHours

Declaration
public double TimeTillMatureHours
Field Value
Type Description
System.Double

Properties

DeathTime

Declaration
public double DeathTime { get; set; }
Property Value
Type Description
System.Double

GrowthBlocked

Declaration
public virtual bool GrowthBlocked { get; }
Property Value
Type Description
System.Boolean

GrowthPercent

Declaration
public override float GrowthPercent { get; set; }
Property Value
Type Description
System.Single
Overrides
Organism.GrowthPercent

NetTrafficCategory

Declaration
public virtual string NetTrafficCategory { get; }
Property Value
Type Description
System.String

PlantPack

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

Ripe

Declaration
public virtual bool Ripe { get; }
Property Value
Type Description
System.Boolean

Species

Declaration
public PlantSpecies Species { get; }
Property Value
Type Description
PlantSpecies

Tended

Declaration
public bool Tended { get; set; }
Property Value
Type Description
System.Boolean

UpRooted

Declaration
public virtual bool UpRooted { get; }
Property Value
Type Description
System.Boolean

WillDecay

Declaration
public virtual bool WillDecay { get; }
Property Value
Type Description
System.Boolean

Methods

CalculateResourceYield(Range, Single)

Declaration
protected virtual int CalculateResourceYield(Range range, float bonusMultiplier = 1F)
Parameters
Type Name Description
Range range
System.Single bonusMultiplier
Returns
Type Description
System.Int32

Destroy()

Declaration
public override void Destroy()
Overrides
Tickable.Destroy()

GetEcosystemInfo()

Declaration
public LocString GetEcosystemInfo()
Returns
Type Description
LocString

MarkDirty()

Declaration
public void MarkDirty()

RandomizeAge()

Declaration
public virtual void RandomizeAge()

ShouldDecay()

Declaration
public bool ShouldDecay()
Returns
Type Description
System.Boolean

Tick()

Declaration
public override void Tick()
Overrides
Tickable.Tick()

TrySeed(Double)

If possible, returns collection of position where plant leave the seeds. Can seed only once in SeedingTime.

Declaration
public IEnumerable<Vector2i> TrySeed(double time)
Parameters
Type Name Description
System.Double time
Returns
Type Description
System.Collections.Generic.IEnumerable<Vector2i>

Implements

ITickable
System.IComparable
INetTrafficCategory
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾