C# Class DRObjects.Items.Archetypes.Local.Potion

Inheritance: InventoryItem
Afficher le fichier Open project: Haedrian/Divine-Right Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
GetPossibleActions ( Actor actor ) : ActionType[]
PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
Potion ( PotionType type ) : System
ThrowUpon ( Actor attacker, List actors ) : ActionFeedback[]

The effect to apply when the potion is thrown upon the actors. Also handles learnign (for those which give an effect) and feedback

Method Details

GetPossibleActions() public méthode

public GetPossibleActions ( Actor actor ) : ActionType[]
actor Actor
Résultat ActionType[]

PerformAction() public méthode

public PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
actionType ActionType
actor Actor
args object
Résultat ActionFeedback[]

Potion() public méthode

public Potion ( PotionType type ) : System
type PotionType
Résultat System

ThrowUpon() public méthode

The effect to apply when the potion is thrown upon the actors. Also handles learnign (for those which give an effect) and feedback
public ThrowUpon ( Actor attacker, List actors ) : ActionFeedback[]
attacker Actor
actors List
Résultat ActionFeedback[]