Table of Contents

Class ArenaCharacter

Namespace
Nekoyume.Model
Assembly
Lib9c.dll
public class ArenaCharacter : ICloneable
Inheritance
ArenaCharacter
Implements
Inherited Members

Constructors

ArenaCharacter(IArenaSimulator, ArenaPlayerDigest, ArenaSimulatorSheets, bool)

public ArenaCharacter(IArenaSimulator simulator, ArenaPlayerDigest digest, ArenaSimulatorSheets sheets, bool isEnemy = false)

Parameters

simulator IArenaSimulator
digest ArenaPlayerDigest
sheets ArenaSimulatorSheets
isEnemy bool

ArenaCharacter(IArenaSimulator, ArenaPlayerDigest, ArenaSimulatorSheets, long, List<StatModifier>, bool, bool)

public ArenaCharacter(IArenaSimulator simulator, ArenaPlayerDigest digest, ArenaSimulatorSheets sheets, long hpModifier, List<StatModifier> collectionModifiers, bool isEnemy = false, bool setExtraValueBuffBeforeGetBuffs = false)

Parameters

simulator IArenaSimulator
digest ArenaPlayerDigest
sheets ArenaSimulatorSheets
hpModifier long
collectionModifiers List<StatModifier>
isEnemy bool
setExtraValueBuffBeforeGetBuffs bool

Fields

CriticalMultiplier

public const decimal CriticalMultiplier = 1.5

Field Value

decimal

RuneSkillCooldownMap

public readonly Dictionary<int, int> RuneSkillCooldownMap

Field Value

Dictionary<int, int>

Simulator

public readonly IArenaSimulator Simulator

Field Value

IArenaSimulator

_runeSkills

public readonly ArenaSkills _runeSkills

Field Value

ArenaSkills

usedSkill

public ArenaSkill usedSkill

Field Value

ArenaSkill

Properties

ATK

public long ATK { get; }

Property Value

long

ActionBuffs

public IEnumerable<ActionBuff> ActionBuffs { get; }

Property Value

IEnumerable<ActionBuff>

AdditionalHP

public long AdditionalHP { get; }

Property Value

long

ArmorPenetration

public long ArmorPenetration { get; }

Property Value

long

AttackCount

public int AttackCount { get; }

Property Value

int

AttackRange

public float AttackRange { get; }

Property Value

float

Buffs

public Dictionary<int, Buff> Buffs { get; }

Property Value

Dictionary<int, Buff>

CDMG

public long CDMG { get; }

Property Value

long

CRI

public long CRI { get; }

Property Value

long

CharacterId

public int CharacterId { get; }

Property Value

int

CurrentHP

public long CurrentHP { get; set; }

Property Value

long

DEF

public long DEF { get; }

Property Value

long

DRR

public long DRR { get; }

Property Value

long

DRV

public long DRV { get; }

Property Value

long

DefenseElementalType

public ElementalType DefenseElementalType { get; }

Property Value

ElementalType

HIT

public long HIT { get; }

Property Value

long

HP

public long HP { get; }

Property Value

long

Id

public Guid Id { get; }

Property Value

Guid

IsDead

public bool IsDead { get; }

Property Value

bool

IsEnemy

public bool IsEnemy { get; }

Property Value

bool

Level

public int Level { get; set; }

Property Value

int

OffensiveElementalType

public ElementalType OffensiveElementalType { get; }

Property Value

ElementalType

RunSpeed

public float RunSpeed { get; }

Property Value

float

SPD

public long SPD { get; }

Property Value

long

SizeType

public SizeType SizeType { get; }

Property Value

SizeType

SkillLog

public ArenaSkill SkillLog { get; }

Property Value

ArenaSkill

StatBuffs

public IEnumerable<StatBuff> StatBuffs { get; }

Property Value

IEnumerable<StatBuff>

Stats

public CharacterStats Stats { get; }

Property Value

CharacterStats

Thorn

public long Thorn { get; }

Property Value

long

Methods

AddBuff(Buff, bool)

public IEnumerable<Buff> AddBuff(Buff buff, bool updateImmediate = true)

Parameters

buff Buff
updateImmediate bool

Returns

IEnumerable<Buff>

Clone()

Creates a new object that is a copy of the current instance.

public object Clone()

Returns

object

A new object that is a copy of this instance.

GetDamage(long, bool)

public long GetDamage(long damage, bool considerAttackCount = true)

Parameters

damage long
considerAttackCount bool

Returns

long

Heal(long)

public void Heal(long heal)

Parameters

heal long

IsCritical(bool)

public bool IsCritical(bool considerAttackCount = true)

Parameters

considerAttackCount bool

Returns

bool

IsHit(ArenaCharacter)

public virtual bool IsHit(ArenaCharacter caster)

Parameters

caster ArenaCharacter

Returns

bool

OnPostSkill(ArenaSkill)

protected virtual void OnPostSkill(ArenaSkill usedSkill)

Parameters

usedSkill ArenaSkill

OnPreSkill()

protected virtual bool OnPreSkill()

Returns

bool

RemoveActionBuff(ActionBuff)

public void RemoveActionBuff(ActionBuff removedBuff)

Parameters

removedBuff ActionBuff

RemoveRecentStatBuff()

public void RemoveRecentStatBuff()

RemoveStatBuff(StatBuff)

public void RemoveStatBuff(StatBuff removedBuff)

Parameters

removedBuff StatBuff

ResetCurrentHP()

protected void ResetCurrentHP()

SetRuneSkills(IEnumerable<RuneState>, RuneOptionSheet, SkillSheet)

public void SetRuneSkills(IEnumerable<RuneState> runes, RuneOptionSheet runeOptionSheet, SkillSheet skillSheet)

Parameters

runes IEnumerable<RuneState>
runeOptionSheet RuneOptionSheet
skillSheet SkillSheet

SetRuneStats(IEnumerable<RuneState>, RuneOptionSheet, int)

public void SetRuneStats(IEnumerable<RuneState> runes, RuneOptionSheet runeOptionSheet, int runeLevelBonus)

Parameters

runes IEnumerable<RuneState>
runeOptionSheet RuneOptionSheet
runeLevelBonus int

SetRuneV1(List<RuneState>, RuneOptionSheet, SkillSheet)

[Obsolete("Use SetRune instead.")]
public void SetRuneV1(List<RuneState> runes, RuneOptionSheet runeOptionSheet, SkillSheet skillSheet)

Parameters

runes List<RuneState>
runeOptionSheet RuneOptionSheet
skillSheet SkillSheet

SetRuneV2(List<RuneState>, RuneOptionSheet, SkillSheet)

[Obsolete("Use SetRune instead.")]
public void SetRuneV2(List<RuneState> runes, RuneOptionSheet runeOptionSheet, SkillSheet skillSheet)

Parameters

runes List<RuneState>
runeOptionSheet RuneOptionSheet
skillSheet SkillSheet

Spawn(ArenaCharacter)

public void Spawn(ArenaCharacter target)

Parameters

target ArenaCharacter

SpawnV2(ArenaCharacter)

[Obsolete("Use Spawn")]
public void SpawnV2(ArenaCharacter target)

Parameters

target ArenaCharacter

Tick()

public void Tick()