Elin Modding Docs Doc
Loading...
Searching...
No Matches
Element Class Reference
Inheritance diagram for Element:
EClass Act AttbMain AttbSpecial AttbWeapon Culture Feat Level Piety RaceBonus Resistance Skill

Public Member Functions

virtual SourceElement.Row GetSource ()
 
virtual int GetSourcePotential (int v)
 
virtual Sprite GetSprite ()
 
int GetMaterialSourceValue (Thing t, int v)
 
virtual int GetSourceValue (int v, int lv, SourceValueType type)
 
virtual Sprite GetIcon (string suffix="")
 
int SortVal (bool charaSheet=false)
 
virtual bool CanLink (ElementContainer owner)
 
bool HasTag (string tag)
 
void SetImage (Image i)
 
virtual string GetDetail ()
 
bool IsFactionElement (Chara c)
 
Element GetParent (Card c)
 
void WriteNote (UINote n, ElementContainer owner=null, Action< UINote > onWriteNote=null)
 
void WriteNoteWithRef (UINote n, ElementContainer owner, Action< UINote > onWriteNote, Element refEle)
 
void _WriteNote (UINote n, Chara c, Act act)
 
void _WriteNote (UINote n, ElementContainer owner, Action< UINote > onWriteNote, bool isRef, bool addHeader=true)
 
virtual void OnWriteNote (UINote n, ElementContainer owner)
 
virtual void OnChangeValue ()
 
void CheckLevelBonus (ElementContainer owner, UINote n=null)
 
int GetSortVal (UIList.SortMode m)
 
virtual Act.Cost GetCost (Chara c)
 
virtual int GetPower (Card c)
 
virtual void SetTextValue (UIText text)
 

Static Public Member Functions

static string GetName (string alias)
 
static SourceElement.Row Get (int id)
 
static Dictionary< int, int > GetElementMap (int[] list)
 
static Dictionary< int, int > GetElementMap (int[] list, Dictionary< int, int > map)
 
static SourceElement.Row GetRandomElement (int lv=1)
 
static Element Create (int id, int v=0)
 
static Element Create (string id, int v=1)
 
static int GetId (string alias)
 
static int GetResistLv (int v)
 
static int GetResistDamage (int dmg, int v)
 
- 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)
 

Public Attributes

SourceElement.Row _source
 
int id
 
int vBase
 
int vExp
 
int vPotential
 
int vTempPotential
 
int vLink
 
int vSource
 
int vSourcePotential
 
ElementContainer owner
 

Static Public Attributes

const int Div = 5
 
static Element Void = new Element()
 
static int[] List_MainAttributes
 
static int[] List_MainAttributesMajor
 
static int[] List_Body
 
static int[] List_Mind
 
static List< SourceElement.RowListElements = new List<SourceElement.Row>()
 
static List< SourceElement.RowListAttackElements = new List<SourceElement.Row>()
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

SourceElement.Row source [get]
 
virtual int DisplayValue [get]
 
virtual int MinValue [get]
 
int Value [get]
 
int ValueWithoutLink [get]
 
virtual int MinPotential [get]
 
int Potential [get]
 
virtual bool CanGainExp [get]
 
bool IsFlag [get]
 
virtual string Name [get]
 
virtual string FullName [get]
 
virtual int ExpToNext [get]
 
virtual bool UseExpMod [get]
 
virtual int CostTrain [get]
 
virtual int CostLearn [get]
 
virtual bool ShowXP [get]
 
virtual bool ShowMsgOnValueChanged [get]
 
virtual bool ShowValue [get]
 
virtual bool ShowPotential [get]
 
virtual bool UsePotential [get]
 
virtual bool PotentialAsStock [get]
 
virtual bool ShowRelativeAttribute [get]
 
virtual string ShortName [get]
 
bool IsGlobalElement [get]
 
bool IsFactionWideElement [get]
 
bool IsPartyWideElement [get]
 
virtual bool ShowEncNumber [get]
 
bool IsTrait [get]
 
bool IsFoodTrait [get]
 
bool IsFoodTraitMain [get]
 
bool IsMainAttribute [get]
 
Act act [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]
 

Detailed Description

Definition at line 8 of file Element.2.cs.

Member Function Documentation

◆ _WriteNote() [1/2]

void Element._WriteNote ( UINote n,
Chara c,
Act act )

Definition at line 554 of file Element.2.cs.

◆ _WriteNote() [2/2]

void Element._WriteNote ( UINote n,
ElementContainer owner,
Action< UINote > onWriteNote,
bool isRef,
bool addHeader = true )

Definition at line 629 of file Element.2.cs.

◆ CanLink()

virtual bool Element.CanLink ( ElementContainer owner)
virtual

Definition at line 356 of file Element.2.cs.

◆ CheckLevelBonus()

void Element.CheckLevelBonus ( ElementContainer owner,
UINote n = null )

Definition at line 721 of file Element.2.cs.

◆ Create() [1/2]

static Element Element.Create ( int id,
int v = 0 )
static

Definition at line 856 of file Element.2.cs.

◆ Create() [2/2]

static Element Element.Create ( string id,
int v = 1 )
static

Definition at line 871 of file Element.2.cs.

◆ Get()

static SourceElement.Row Element.Get ( int id)
static

Definition at line 17 of file Element.2.cs.

◆ GetCost()

virtual Act.Cost Element.GetCost ( Chara c)
virtual

Definition at line 793 of file Element.2.cs.

◆ GetDetail()

virtual string Element.GetDetail ( )
virtual

Definition at line 439 of file Element.2.cs.

◆ GetElementMap() [1/2]

static Dictionary< int, int > Element.GetElementMap ( int[] list)
static

Definition at line 485 of file Element.2.cs.

◆ GetElementMap() [2/2]

static Dictionary< int, int > Element.GetElementMap ( int[] list,
Dictionary< int, int > map )
static

Definition at line 499 of file Element.2.cs.

◆ GetIcon()

virtual Sprite Element.GetIcon ( string suffix = "")
virtual

Definition at line 188 of file Element.2.cs.

◆ GetId()

static int Element.GetId ( string alias)
static

Definition at line 877 of file Element.2.cs.

◆ GetMaterialSourceValue()

int Element.GetMaterialSourceValue ( Thing t,
int v )

Definition at line 136 of file Element.2.cs.

◆ GetName()

static string Element.GetName ( string alias)
static

Definition at line 11 of file Element.2.cs.

◆ GetParent()

Element Element.GetParent ( Card c)

Definition at line 475 of file Element.2.cs.

◆ GetPower()

virtual int Element.GetPower ( Card c)
virtual

Definition at line 826 of file Element.2.cs.

◆ GetRandomElement()

static SourceElement.Row Element.GetRandomElement ( int lv = 1)
static

Definition at line 512 of file Element.2.cs.

◆ GetResistDamage()

static int Element.GetResistDamage ( int dmg,
int v )
static

Definition at line 894 of file Element.2.cs.

◆ GetResistLv()

static int Element.GetResistLv ( int v)
static

Definition at line 883 of file Element.2.cs.

◆ GetSortVal()

int Element.GetSortVal ( UIList.SortMode m)

Definition at line 771 of file Element.2.cs.

◆ GetSource()

virtual SourceElement.Row Element.GetSource ( )
virtual

Definition at line 23 of file Element.2.cs.

◆ GetSourcePotential()

virtual int Element.GetSourcePotential ( int v)
virtual

Definition at line 124 of file Element.2.cs.

◆ GetSourceValue()

virtual int Element.GetSourceValue ( int v,
int lv,
SourceValueType type )
virtual

Definition at line 154 of file Element.2.cs.

◆ GetSprite()

virtual Sprite Element.GetSprite ( )
virtual

Definition at line 130 of file Element.2.cs.

◆ HasTag()

bool Element.HasTag ( string tag)

Definition at line 422 of file Element.2.cs.

◆ IsFactionElement()

bool Element.IsFactionElement ( Chara c)

Definition at line 445 of file Element.2.cs.

◆ OnChangeValue()

virtual void Element.OnChangeValue ( )
virtual

Definition at line 716 of file Element.2.cs.

◆ OnWriteNote()

virtual void Element.OnWriteNote ( UINote n,
ElementContainer owner )
virtual

Definition at line 711 of file Element.2.cs.

◆ SetImage()

void Element.SetImage ( Image i)

Definition at line 428 of file Element.2.cs.

◆ SetTextValue()

virtual void Element.SetTextValue ( UIText text)
virtual

Definition at line 832 of file Element.2.cs.

◆ SortVal()

int Element.SortVal ( bool charaSheet = false)

Definition at line 349 of file Element.2.cs.

◆ WriteNote()

void Element.WriteNote ( UINote n,
ElementContainer owner = null,
Action< UINote > onWriteNote = null )

Definition at line 537 of file Element.2.cs.

◆ WriteNoteWithRef()

void Element.WriteNoteWithRef ( UINote n,
ElementContainer owner,
Action< UINote > onWriteNote,
Element refEle )

Definition at line 545 of file Element.2.cs.

Member Data Documentation

◆ _source

SourceElement.Row Element._source

Definition at line 981 of file Element.2.cs.

◆ Div

const int Element.Div = 5
static

Definition at line 930 of file Element.2.cs.

◆ id

int Element.id

Definition at line 984 of file Element.2.cs.

◆ List_Body

int [] Element.List_Body
static
Initial value:
= new int[]
{
70,
72,
71,
77
}

Definition at line 963 of file Element.2.cs.

◆ List_MainAttributes

int [] Element.List_MainAttributes
static
Initial value:
= new int[]
{
70,
72,
71,
77,
74,
75,
76,
73,
79
}

Definition at line 936 of file Element.2.cs.

◆ List_MainAttributesMajor

int [] Element.List_MainAttributesMajor
static
Initial value:
= new int[]
{
70,
72,
71,
77,
74,
75,
76,
73
}

Definition at line 950 of file Element.2.cs.

◆ List_Mind

int [] Element.List_Mind
static
Initial value:
= new int[]
{
74,
75,
76,
73
}

Definition at line 972 of file Element.2.cs.

◆ ListAttackElements

List<SourceElement.Row> Element.ListAttackElements = new List<SourceElement.Row>()
static

Definition at line 1014 of file Element.2.cs.

◆ ListElements

List<SourceElement.Row> Element.ListElements = new List<SourceElement.Row>()
static

Definition at line 1011 of file Element.2.cs.

◆ owner

ElementContainer Element.owner

Definition at line 1008 of file Element.2.cs.

◆ vBase

int Element.vBase

Definition at line 987 of file Element.2.cs.

◆ vExp

int Element.vExp

Definition at line 990 of file Element.2.cs.

◆ vLink

int Element.vLink

Definition at line 999 of file Element.2.cs.

◆ Void

Element Element.Void = new Element()
static

Definition at line 933 of file Element.2.cs.

◆ vPotential

int Element.vPotential

Definition at line 993 of file Element.2.cs.

◆ vSource

int Element.vSource

Definition at line 1002 of file Element.2.cs.

◆ vSourcePotential

int Element.vSourcePotential

Definition at line 1005 of file Element.2.cs.

◆ vTempPotential

int Element.vTempPotential

Definition at line 996 of file Element.2.cs.

Property Documentation

◆ act

Act Element.act
get

Definition at line 413 of file Element.2.cs.

◆ CanGainExp

virtual bool Element.CanGainExp
get

Definition at line 105 of file Element.2.cs.

◆ CostLearn

virtual int Element.CostLearn
get

Definition at line 230 of file Element.2.cs.

◆ CostTrain

virtual int Element.CostTrain
get

Definition at line 220 of file Element.2.cs.

◆ DisplayValue

virtual int Element.DisplayValue
get

Definition at line 45 of file Element.2.cs.

◆ ExpToNext

virtual int Element.ExpToNext
get

Definition at line 200 of file Element.2.cs.

◆ FullName

virtual string Element.FullName
get

Definition at line 179 of file Element.2.cs.

◆ IsFactionWideElement

bool Element.IsFactionWideElement
get

Definition at line 330 of file Element.2.cs.

◆ IsFlag

bool Element.IsFlag
get

Definition at line 115 of file Element.2.cs.

◆ IsFoodTrait

bool Element.IsFoodTrait
get

Definition at line 383 of file Element.2.cs.

◆ IsFoodTraitMain

bool Element.IsFoodTraitMain
get

Definition at line 393 of file Element.2.cs.

◆ IsGlobalElement

bool Element.IsGlobalElement
get

Definition at line 320 of file Element.2.cs.

◆ IsMainAttribute

bool Element.IsMainAttribute
get

Definition at line 403 of file Element.2.cs.

◆ IsPartyWideElement

bool Element.IsPartyWideElement
get

Definition at line 340 of file Element.2.cs.

◆ IsTrait

bool Element.IsTrait
get

Definition at line 373 of file Element.2.cs.

◆ MinPotential

virtual int Element.MinPotential
get

Definition at line 85 of file Element.2.cs.

◆ MinValue

virtual int Element.MinValue
get

Definition at line 55 of file Element.2.cs.

◆ Name

virtual string Element.Name
get

Definition at line 169 of file Element.2.cs.

◆ Potential

int Element.Potential
get

Definition at line 95 of file Element.2.cs.

◆ PotentialAsStock

virtual bool Element.PotentialAsStock
get

Definition at line 290 of file Element.2.cs.

◆ ShortName

virtual string Element.ShortName
get

Definition at line 310 of file Element.2.cs.

◆ ShowEncNumber

virtual bool Element.ShowEncNumber
get

Definition at line 363 of file Element.2.cs.

◆ ShowMsgOnValueChanged

virtual bool Element.ShowMsgOnValueChanged
get

Definition at line 250 of file Element.2.cs.

◆ ShowPotential

virtual bool Element.ShowPotential
get

Definition at line 270 of file Element.2.cs.

◆ ShowRelativeAttribute

virtual bool Element.ShowRelativeAttribute
get

Definition at line 300 of file Element.2.cs.

◆ ShowValue

virtual bool Element.ShowValue
get

Definition at line 260 of file Element.2.cs.

◆ ShowXP

virtual bool Element.ShowXP
get

Definition at line 240 of file Element.2.cs.

◆ source

SourceElement.Row Element.source
get

Definition at line 30 of file Element.2.cs.

◆ UseExpMod

virtual bool Element.UseExpMod
get

Definition at line 210 of file Element.2.cs.

◆ UsePotential

virtual bool Element.UsePotential
get

Definition at line 280 of file Element.2.cs.

◆ Value

int Element.Value
get

Definition at line 65 of file Element.2.cs.

◆ ValueWithoutLink

int Element.ValueWithoutLink
get

Definition at line 75 of file Element.2.cs.


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