Battle Talent  V11
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Events | List of all members
CrossLink.CombatAttr Class Reference

Inherits MonoBehaviour, and CrossLink.ValueProvider.

Inherited by CrossLink.CharacterCombatAttr, and CrossLink.PlayerCombatAttr.

Public Member Functions

virtual void ChangeCamp ()
 
virtual void ChangeCamp (string c)
 
float GetDeadTime ()
 
bool IsDiedForAWhile (float sec=1f)
 
string ToString ()
 
void Init (CharacterConfig.CharacterConfigItem configData)
 
void InitBuff ()
 
void InitModifiers ()
 
virtual void AddHp (float hpDelta)
 
virtual void AddMp (float mpDelta)
 
virtual void RecoverMp (float mount=1)
 
bool IsDead ()
 
void Relive ()
 
void ReduceHp (float dhp=-100)
 
void ToDead ()
 
float GetHpFactorByReducer (float reduce)
 
float GetHpRestFactor ()
 
float GetHpFactor ()
 
virtual float GetFinalMass ()
 
AttrModifier GetModifier ()
 
float GetState (string name)
 
bool HasState (string name)
 
bool IsImmune (string element)
 
virtual float ReadValue (string attr)
 
virtual void WriteValue (string attr, float v)
 
bool ListenToModify (string modifierName, System.Action< ValueProvider, string > func, bool pullValue=true)
 
void UnListenToModify (string modifierName, System.Action< ValueProvider, string > func)
 
void TriggerStateUpdate (string state)
 
void TriggerHitOther (ValueProvider other)
 
void TriggerStabOther (ValueProvider other)
 
void TriggerBeHit (ValueProvider other)
 

Public Attributes

string camp = AIProxy.CampBad
 
System.Action CampChangedEvent
 
string configName
 
CharacterStat hpMax = new CharacterStat(100)
 
CharacterStat hp = new CharacterStat(100)
 
CharacterStat mpMax = new CharacterStat(10)
 
CharacterStat mp = new CharacterStat(10)
 
CharacterStat atkMlp = new CharacterStat(1)
 
CharacterStat massMlp = new CharacterStat(1)
 
int rebornCount = 0
 
string[] defaultBuffs
 

Static Public Attributes

const float SystemMaxHp = 99999999
 
const float ContentMaxHp = 99999f
 
const float MiniAmountHpLeft = 20
 
const float SmallAmountHpLeft = 80
 
const float MiddleAmountHpLeft = 160
 

Protected Member Functions

void OnRebornCountChanged (ValueProvider vp, string stateName)
 

Events

System.Action DeadEvent
 
System.Action< ValueProvider, string > StateUpdateEvent
 
System.Action< ValueProvider, ValueProviderHitOtherEvent
 
System.Action< ValueProvider, ValueProviderStabOtherEvent
 
System.Action< ValueProvider, ValueProviderBeHitEvent