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

Inheritance: InventoryItem
Show file Open project: Haedrian/Divine-Right Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

public GetPossibleActions ( Actor actor ) : ActionType[]
actor Actor
return ActionType[]

PerformAction() public method

public PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
actionType ActionType
actor Actor
args object
return ActionFeedback[]

Potion() public method

public Potion ( PotionType type ) : System
type PotionType
return System

ThrowUpon() public method

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
return ActionFeedback[]