Elin Modding Docs Doc
Loading...
Searching...
No Matches
CharaBody Class Reference
Inheritance diagram for CharaBody:
EClass

Public Member Functions

void SetOwner (Chara chara, bool deserialized=false)
 
void Unequip (Thing thing, bool refresh=true)
 
void UnequipAll (int idSlot)
 
void Unequip (BodySlot slot, bool refresh=true)
 
bool IsEquippable (Thing thing, BodySlot slot, bool text=true)
 
bool IsTooHeavyToEquip (Thing thing)
 
void UnqeuipIfTooHeavy (Thing t)
 
bool Equip (Thing thing, BodySlot slot=null, bool msg=true)
 
void AddBodyPart (int ele, Thing thing=null)
 
void RefreshBodyParts ()
 
void RemoveBodyPart (int ele)
 
BodySlot GetSlot (Thing t, bool onlyEmpty=false, bool secondSlot=false)
 
BodySlot GetSlot (int elementId, bool onlyEmpty=true, bool secondSlot=false)
 
Thing GetEquippedThing (int elementId)
 
int GetWeight (bool armorOnly=false)
 
int GetAttackIndex (Thing t)
 
int GetMeleeDistance ()
 
AttackStyle GetAttackStyle ()
 
int GetAttackStyleElement (AttackStyle style)
 

Public Attributes

Chara owner
 
List< BodySlotslots = new List<BodySlot>()
 
BodySlot slotMainHand
 
BodySlot slotOffHand
 
BodySlot slotRange
 

Properties

int[] rawSlots [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)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 7 of file CharaBody.cs.

Member Function Documentation

◆ AddBodyPart()

void CharaBody.AddBodyPart ( int ele,
Thing thing = null )

Definition at line 268 of file CharaBody.cs.

◆ Equip()

bool CharaBody.Equip ( Thing thing,
BodySlot slot = null,
bool msg = true )

Definition at line 176 of file CharaBody.cs.

◆ GetAttackIndex()

int CharaBody.GetAttackIndex ( Thing t)

Definition at line 406 of file CharaBody.cs.

◆ GetAttackStyle()

AttackStyle CharaBody.GetAttackStyle ( )

Definition at line 443 of file CharaBody.cs.

◆ GetAttackStyleElement()

int CharaBody.GetAttackStyleElement ( AttackStyle style)

Definition at line 477 of file CharaBody.cs.

◆ GetEquippedThing()

Thing CharaBody.GetEquippedThing ( int elementId)

Definition at line 379 of file CharaBody.cs.

◆ GetMeleeDistance()

int CharaBody.GetMeleeDistance ( )

Definition at line 424 of file CharaBody.cs.

◆ GetSlot() [1/2]

BodySlot CharaBody.GetSlot ( int elementId,
bool onlyEmpty = true,
bool secondSlot = false )

Definition at line 361 of file CharaBody.cs.

◆ GetSlot() [2/2]

BodySlot CharaBody.GetSlot ( Thing t,
bool onlyEmpty = false,
bool secondSlot = false )

Definition at line 346 of file CharaBody.cs.

◆ GetWeight()

int CharaBody.GetWeight ( bool armorOnly = false)

Definition at line 392 of file CharaBody.cs.

◆ IsEquippable()

bool CharaBody.IsEquippable ( Thing thing,
BodySlot slot,
bool text = true )

Definition at line 109 of file CharaBody.cs.

◆ IsTooHeavyToEquip()

bool CharaBody.IsTooHeavyToEquip ( Thing thing)

Definition at line 152 of file CharaBody.cs.

◆ RefreshBodyParts()

void CharaBody.RefreshBodyParts ( )

Definition at line 295 of file CharaBody.cs.

◆ RemoveBodyPart()

void CharaBody.RemoveBodyPart ( int ele)

Definition at line 319 of file CharaBody.cs.

◆ SetOwner()

void CharaBody.SetOwner ( Chara chara,
bool deserialized = false )

Definition at line 20 of file CharaBody.cs.

◆ Unequip() [1/2]

void CharaBody.Unequip ( BodySlot slot,
bool refresh = true )

Definition at line 74 of file CharaBody.cs.

◆ Unequip() [2/2]

void CharaBody.Unequip ( Thing thing,
bool refresh = true )

Definition at line 52 of file CharaBody.cs.

◆ UnequipAll()

void CharaBody.UnequipAll ( int idSlot)

Definition at line 62 of file CharaBody.cs.

◆ UnqeuipIfTooHeavy()

void CharaBody.UnqeuipIfTooHeavy ( Thing t)

Definition at line 158 of file CharaBody.cs.

Member Data Documentation

◆ owner

Chara CharaBody.owner

Definition at line 502 of file CharaBody.cs.

◆ slotMainHand

BodySlot CharaBody.slotMainHand

Definition at line 508 of file CharaBody.cs.

◆ slotOffHand

BodySlot CharaBody.slotOffHand

Definition at line 511 of file CharaBody.cs.

◆ slotRange

BodySlot CharaBody.slotRange

Definition at line 514 of file CharaBody.cs.

◆ slots

List<BodySlot> CharaBody.slots = new List<BodySlot>()

Definition at line 505 of file CharaBody.cs.

Property Documentation

◆ rawSlots

int [] CharaBody.rawSlots
get

Definition at line 11 of file CharaBody.cs.


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