Elin Modding Docs Doc
Loading...
Searching...
No Matches
GrowSystem Class Reference
Inheritance diagram for GrowSystem:
EClass GrowSystemCrop GrowSystemKinoko GrowSystemPlant GrowSystemTree GrowSystemWeed GrowSystemBerry GrowSystemCactus GrowSystemWheat GrowSystemFlower GrowSystemHerb GrowSystemTreeSingle GrowSystemPasture GrowSystemRice

Classes

class  Stage
 

Public Member Functions

bool IsLastStage ()
 
virtual bool BlockSight (Cell cell)
 
virtual bool BlockPass (Cell cell)
 
virtual string GetSoundProgress ()
 
virtual GrowSystem.Stage CreateStage ()
 
void Init (SourceObj.Row _row)
 
virtual void SetGenericFirstStageTile (GrowSystem.Stage s)
 
virtual void SetStageTile (GrowSystem.Stage s)
 
virtual int GetStageTile ()
 
virtual int GetShadow (int index)
 
virtual void OnRenderTileMap (RenderParam p)
 
void SetRandomStage ()
 
void SetDefaultStage ()
 
bool CanGrow (VirtualDate date)
 
void TryGrow (VirtualDate date)
 
void EqualizePlants (Point pos)
 
void Grow (int mtp=1)
 
virtual void OnReachNextStage ()
 
virtual void OnExceedLastStage ()
 
void SetStage (int idx, bool renewHarvest=false)
 
bool HaltGrowth ()
 
void Perish ()
 
bool IsWithered ()
 
bool CanHarvest ()
 
virtual bool CanReapSeed ()
 
virtual void OnHit (Chara c)
 
virtual void OnHitFail (Chara c)
 
void OnProgressComplete (Chara c)
 
void PopMineObj (Chara c=null)
 
virtual void OnMineObj (Chara c=null)
 
void TryPick (Cell cell, Thing t, Chara c, bool applySeed=false)
 
void TryPick (Cell cell, string idThing, int idMat=-1, int num=1, bool applySeed=false)
 
Thing TryPopSeed (Chara c)
 
void Harvest (Chara c)
 
void PopHarvest (Chara c, string idThing, int num=-1)
 
void PopHarvest (Chara c, Thing t=null, int num=-1)
 
void ApplySeed (Thing t)
 
virtual int GetHp ()
 

Public Attributes

SourceObj.Row source
 
GrowSystem.Stage[] stages
 
int[] baseTiles
 
int harvestTile
 
int afterHarvestTile
 
string idHarvestThing
 

Static Public Attributes

static SourceObj.Row[] sourceSnowTree
 
const int DivStage = 30
 
static Cell cell
 
static GrowSystem.Stage currentStage
 
- Static Public Attributes inherited from EClass
static Core core
 

Protected Member Functions

virtual bool IsHarvestStage (int idx)
 

Properties

virtual RenderData RenderHarvest [get]
 
virtual int Step [get]
 
virtual int StageLength [get]
 
virtual int DefaultStage [get]
 
virtual int HarvestStage [get]
 
virtual int AutoMineStage [get]
 
virtual int HaltStage [get]
 
virtual bool DrawHarvestOnTop [get]
 
virtual bool UseGenericFirstStageTile [get]
 
virtual bool WitherOnLastStage [get]
 
virtual bool CanRegrow [get]
 
virtual int ShadowStage [get]
 
virtual bool IsTree [get]
 
virtual bool IsCrimeToHarvest [get]
 
virtual float MtpProgress [get]
 
virtual bool NeedSunlight [get]
 
virtual AnimeID AnimeProgress [get]
 
GrowSystem.Stage stage [get]
 
virtual bool IsMature [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Detailed Description

Definition at line 5 of file GrowSystem.cs.

Member Function Documentation

◆ ApplySeed()

void GrowSystem.ApplySeed ( Thing t)

Definition at line 803 of file GrowSystem.cs.

◆ BlockPass()

virtual bool GrowSystem.BlockPass ( Cell cell)
virtual

Definition at line 186 of file GrowSystem.cs.

◆ BlockSight()

virtual bool GrowSystem.BlockSight ( Cell cell)
virtual

Definition at line 180 of file GrowSystem.cs.

◆ CanGrow()

bool GrowSystem.CanGrow ( VirtualDate date)

Definition at line 367 of file GrowSystem.cs.

◆ CanHarvest()

bool GrowSystem.CanHarvest ( )

Definition at line 606 of file GrowSystem.cs.

◆ CanReapSeed()

virtual bool GrowSystem.CanReapSeed ( )
virtual

Definition at line 612 of file GrowSystem.cs.

◆ CreateStage()

virtual GrowSystem.Stage GrowSystem.CreateStage ( )
virtual

Definition at line 218 of file GrowSystem.cs.

◆ EqualizePlants()

void GrowSystem.EqualizePlants ( Point pos)

Definition at line 402 of file GrowSystem.cs.

◆ GetHp()

virtual int GrowSystem.GetHp ( )
virtual

Definition at line 828 of file GrowSystem.cs.

◆ GetShadow()

virtual int GrowSystem.GetShadow ( int index)
virtual

Definition at line 286 of file GrowSystem.cs.

◆ GetSoundProgress()

virtual string GrowSystem.GetSoundProgress ( )
virtual

Definition at line 192 of file GrowSystem.cs.

◆ GetStageTile()

virtual int GrowSystem.GetStageTile ( )
virtual

Definition at line 280 of file GrowSystem.cs.

◆ Grow()

void GrowSystem.Grow ( int mtp = 1)

Definition at line 437 of file GrowSystem.cs.

◆ HaltGrowth()

bool GrowSystem.HaltGrowth ( )

Definition at line 551 of file GrowSystem.cs.

◆ Harvest()

void GrowSystem.Harvest ( Chara c)

Definition at line 728 of file GrowSystem.cs.

◆ Init()

void GrowSystem.Init ( SourceObj.Row _row)

Definition at line 224 of file GrowSystem.cs.

◆ IsHarvestStage()

virtual bool GrowSystem.IsHarvestStage ( int idx)
protectedvirtual

Definition at line 84 of file GrowSystem.cs.

◆ IsLastStage()

bool GrowSystem.IsLastStage ( )

Definition at line 8 of file GrowSystem.cs.

◆ IsWithered()

bool GrowSystem.IsWithered ( )

Definition at line 600 of file GrowSystem.cs.

◆ OnExceedLastStage()

virtual void GrowSystem.OnExceedLastStage ( )
virtual

Definition at line 505 of file GrowSystem.cs.

◆ OnHit()

virtual void GrowSystem.OnHit ( Chara c)
virtual

Definition at line 618 of file GrowSystem.cs.

◆ OnHitFail()

virtual void GrowSystem.OnHitFail ( Chara c)
virtual

Definition at line 623 of file GrowSystem.cs.

◆ OnMineObj()

virtual void GrowSystem.OnMineObj ( Chara c = null)
virtual

Definition at line 641 of file GrowSystem.cs.

◆ OnProgressComplete()

void GrowSystem.OnProgressComplete ( Chara c)

Definition at line 628 of file GrowSystem.cs.

◆ OnReachNextStage()

virtual void GrowSystem.OnReachNextStage ( )
virtual

Definition at line 499 of file GrowSystem.cs.

◆ OnRenderTileMap()

virtual void GrowSystem.OnRenderTileMap ( RenderParam p)
virtual

Definition at line 292 of file GrowSystem.cs.

◆ Perish()

void GrowSystem.Perish ( )

Definition at line 567 of file GrowSystem.cs.

◆ PopHarvest() [1/2]

void GrowSystem.PopHarvest ( Chara c,
string idThing,
int num = -1 )

Definition at line 736 of file GrowSystem.cs.

◆ PopHarvest() [2/2]

void GrowSystem.PopHarvest ( Chara c,
Thing t = null,
int num = -1 )

Definition at line 742 of file GrowSystem.cs.

◆ PopMineObj()

void GrowSystem.PopMineObj ( Chara c = null)

Definition at line 634 of file GrowSystem.cs.

◆ SetDefaultStage()

void GrowSystem.SetDefaultStage ( )

Definition at line 361 of file GrowSystem.cs.

◆ SetGenericFirstStageTile()

virtual void GrowSystem.SetGenericFirstStageTile ( GrowSystem.Stage s)
virtual

Definition at line 261 of file GrowSystem.cs.

◆ SetRandomStage()

void GrowSystem.SetRandomStage ( )

Definition at line 346 of file GrowSystem.cs.

◆ SetStage()

void GrowSystem.SetStage ( int idx,
bool renewHarvest = false )

Definition at line 536 of file GrowSystem.cs.

◆ SetStageTile()

virtual void GrowSystem.SetStageTile ( GrowSystem.Stage s)
virtual

Definition at line 273 of file GrowSystem.cs.

◆ TryGrow()

void GrowSystem.TryGrow ( VirtualDate date)

Definition at line 392 of file GrowSystem.cs.

◆ TryPick() [1/2]

void GrowSystem.TryPick ( Cell cell,
string idThing,
int idMat = -1,
int num = 1,
bool applySeed = false )

Definition at line 685 of file GrowSystem.cs.

◆ TryPick() [2/2]

void GrowSystem.TryPick ( Cell cell,
Thing t,
Chara c,
bool applySeed = false )

Definition at line 652 of file GrowSystem.cs.

◆ TryPopSeed()

Thing GrowSystem.TryPopSeed ( Chara c)

Definition at line 695 of file GrowSystem.cs.

Member Data Documentation

◆ afterHarvestTile

int GrowSystem.afterHarvestTile

Definition at line 862 of file GrowSystem.cs.

◆ baseTiles

int [] GrowSystem.baseTiles

Definition at line 856 of file GrowSystem.cs.

◆ cell

Cell GrowSystem.cell
static

Definition at line 844 of file GrowSystem.cs.

◆ currentStage

GrowSystem.Stage GrowSystem.currentStage
static

Definition at line 847 of file GrowSystem.cs.

◆ DivStage

const int GrowSystem.DivStage = 30
static

Definition at line 841 of file GrowSystem.cs.

◆ harvestTile

int GrowSystem.harvestTile

Definition at line 859 of file GrowSystem.cs.

◆ idHarvestThing

string GrowSystem.idHarvestThing

Definition at line 865 of file GrowSystem.cs.

◆ source

SourceObj.Row GrowSystem.source

Definition at line 850 of file GrowSystem.cs.

◆ sourceSnowTree

SourceObj.Row [] GrowSystem.sourceSnowTree
static
Initial value:
= new SourceObj.Row[]
{
EClass.sources.objs.map[54],
EClass.sources.objs.map[55]
}

Definition at line 834 of file GrowSystem.cs.

◆ stages

GrowSystem.Stage [] GrowSystem.stages

Definition at line 853 of file GrowSystem.cs.

Property Documentation

◆ AnimeProgress

virtual AnimeID GrowSystem.AnimeProgress
get

Definition at line 199 of file GrowSystem.cs.

◆ AutoMineStage

virtual int GrowSystem.AutoMineStage
get

Definition at line 65 of file GrowSystem.cs.

◆ CanRegrow

virtual bool GrowSystem.CanRegrow
getprotected

Definition at line 121 of file GrowSystem.cs.

◆ DefaultStage

virtual int GrowSystem.DefaultStage
get

Definition at line 45 of file GrowSystem.cs.

◆ DrawHarvestOnTop

virtual bool GrowSystem.DrawHarvestOnTop
getprotected

Definition at line 91 of file GrowSystem.cs.

◆ HaltStage

virtual int GrowSystem.HaltStage
getprotected

Definition at line 75 of file GrowSystem.cs.

◆ HarvestStage

virtual int GrowSystem.HarvestStage
get

Definition at line 55 of file GrowSystem.cs.

◆ IsCrimeToHarvest

virtual bool GrowSystem.IsCrimeToHarvest
get

Definition at line 151 of file GrowSystem.cs.

◆ IsMature

virtual bool GrowSystem.IsMature
get

Definition at line 558 of file GrowSystem.cs.

◆ IsTree

virtual bool GrowSystem.IsTree
get

Definition at line 141 of file GrowSystem.cs.

◆ MtpProgress

virtual float GrowSystem.MtpProgress
get

Definition at line 161 of file GrowSystem.cs.

◆ NeedSunlight

virtual bool GrowSystem.NeedSunlight
get

Definition at line 171 of file GrowSystem.cs.

◆ RenderHarvest

virtual RenderData GrowSystem.RenderHarvest
get

Definition at line 15 of file GrowSystem.cs.

◆ ShadowStage

virtual int GrowSystem.ShadowStage
get

Definition at line 131 of file GrowSystem.cs.

◆ stage

GrowSystem.Stage GrowSystem.stage
get

Definition at line 209 of file GrowSystem.cs.

◆ StageLength

virtual int GrowSystem.StageLength
get

Definition at line 35 of file GrowSystem.cs.

◆ Step

virtual int GrowSystem.Step
get

Definition at line 25 of file GrowSystem.cs.

◆ UseGenericFirstStageTile

virtual bool GrowSystem.UseGenericFirstStageTile
getprotected

Definition at line 101 of file GrowSystem.cs.

◆ WitherOnLastStage

virtual bool GrowSystem.WitherOnLastStage
getprotected

Definition at line 111 of file GrowSystem.cs.


The documentation for this class was generated from the following file: