Class CharacterService
Namespace: DiceRolling.Services
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 static void AddAction(CharacterType character, CharacterAction action)
Parameters
character
CharacterType
action
CharacterAction
GetAttributeBaseValue(CharacterType, AttributeType)
public static int GetAttributeBaseValue(CharacterType character, AttributeType type)
Parameters
character
CharacterType
type
AttributeType
Returns
GetAttributeCurrentValue(CharacterType, AttributeType)
public static int GetAttributeCurrentValue(CharacterType character, AttributeType type)
Parameters
character
CharacterType
type
AttributeType
Returns
GetAttributeMaxValue(CharacterType, AttributeType)
public static 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 static void RemoveAction(CharacterType character, CharacterAction action)
Parameters
character
CharacterType
action
CharacterAction
UpdateAttributeCurrentValue(CharacterType, AttributeType, int)
public static void UpdateAttributeCurrentValue(CharacterType character, AttributeType type, int newValue)
Parameters
character
CharacterType
type
AttributeType
newValue
int