Skip to main content

Class CharacterService

Namespace: DiceRolling.Characters
Assembly: dice-rolling.dll

Fornece métodos para manipulação dos dados de personagens.

public class CharacterService

Inheritance

objectCharacterService

Inherited Members

Show/Hide Inherited Members

Properties

Instance

public static CharacterService Instance { get; }

Property Value

CharacterService

Methods

AddAction(CharacterType, CharacterAction)

public void AddAction(CharacterType character, CharacterAction action)

Parameters

character CharacterType

action CharacterAction

GetAttributeBaseValue(CharacterType, AttributeType)

public int GetAttributeBaseValue(CharacterType character, AttributeType type)

Parameters

character CharacterType

type AttributeType

Returns

int

GetAttributeCurrentValue(CharacterType, AttributeType)

public int GetAttributeCurrentValue(CharacterType character, AttributeType type)

Parameters

character CharacterType

type AttributeType

Returns

int

GetAttributeMaxValue(CharacterType, AttributeType)

public int GetAttributeMaxValue(CharacterType character, AttributeType type)

Parameters

character CharacterType

type AttributeType

Returns

int

InitializeActions(CharacterType)

public virtual void InitializeActions(CharacterType character)

Parameters

character CharacterType

InitializeAttributes(CharacterType)

public virtual void InitializeAttributes(CharacterType character)

Parameters

character CharacterType

RemoveAction(CharacterType, CharacterAction)

public void RemoveAction(CharacterType character, CharacterAction action)

Parameters

character CharacterType

action CharacterAction

UpdateAttributeCurrentValue(CharacterType, AttributeType, int)

public void UpdateAttributeCurrentValue(CharacterType character, AttributeType type, int newValue)

Parameters

character CharacterType

type AttributeType

newValue int

Tem uma sugestão? 💡