Class CharacterService
Namespace: DiceRolling.Characters
Assembly: dice-rolling.dll
Fornece métodos para manipulação dos dados de personagens.
public class CharacterService
Inheritance
Inherited Members
Show/Hide Inherited Members
Properties
Instance
public static CharacterService Instance { get; }
Property Value
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
GetAttributeCurrentValue(CharacterType, AttributeType)
public int GetAttributeCurrentValue(CharacterType character, AttributeType type)
Parameters
character
CharacterType
type
AttributeType
Returns
GetAttributeMaxValue(CharacterType, AttributeType)
public int GetAttributeMaxValue(CharacterType character, AttributeType type)
Parameters
character
CharacterType
type
AttributeType
Returns
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